Webform Compatibility

Created on 31 May 2024, 26 days ago
Updated 3 June 2024, 24 days ago

Problem/Motivation

The Address Suggestion functionality does not work with the "Advanced address" element type, which is based off of the Address module.

Steps to reproduce

Create a webform, add an "Advanced Address" element type. See that there's no ability to configure an Address Suggestion provider.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada redsky

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @redsky
  • πŸ‡¨πŸ‡¦Canada redsky

    @lazzyvn, Thanks for this great module - I love it!

    I noticed in an unrelated issue you mentioned "I don't think I have time to support web forms because web forms are not real entity fields.".

    I wonder if you have any thoughts on how you would go about this though. It's perhaps something we could submit a patch for or write a secondary module for. It might also be a conversation I should have in the Webform project but I thought I'd start here with you.

  • πŸ‡«πŸ‡·France lazzyvn paris

    Go ahead, send me a patch. You should base this on the development version that I will merge with the module.

  • πŸ‡¨πŸ‡¦Canada redsky

    I'll have to think about how to go about it. It might be this file in Webform that needs the change?

    https://git.drupalcode.org/project/webform/-/blob/03b6e07416480ad802f453...

  • πŸ‡«πŸ‡·France lazzyvn paris

    yes it needs longitude and latitude, in address line it should check if enable module address suggestion, so change form api to autocomplete. you can configure ckeditor 5 with auto suggestion to get token. otherwise it must have a configuration to select the provider and API connection.
    But why do you need a web form, you can get the same result with contact module + view module + field group. If you need multiple steps, you can do it with the field group bootstrap.

  • πŸ‡¨πŸ‡¦Canada redsky

    Thanks @lazzyvn. Our use case is we have a client with a large site with power users who build their own webforms and there are about 100 of them. It's working well but they've asked us to improve the address input. Address and Address Suggestion seems like they will be a big part of our solution however we can't get away from the Webform requirement.

Production build 0.69.0 2024