2

On the URL PATH SETTINGS, I want to define the Webform URL alias to include a variable parameter e.g. /my-web-form-url/{id} Is this possible? I want to pass this 'id' as a hidden value in the form.

1

1 Answer 1

2

You would need to write some custom code to support custom URL parameters. (see How to (truly) alter a URL in Drupal 8)

You could easily pass the 'id' as a query string parameter, which is supported as long as you enable 'Allow elements to be populated using query string parameters.' under a Webform's > Settings > Form Behaviors.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.