• Resolved plgupa

    (@plgupa)


    Hi,

    I want that when the form is loaded for the first time on the page then one of its field gets pre-populated with a dynamic string value based on the URL query string, so that I can get URL query string value while form submission.
    I already tried plugin “URL Params” and set the Default value of a field as “[urlparam param=’XYZ’/]”. But it did not work.

    Is there any Hook/function that allows me to do something like this?

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @plgupa !

    Hope you’re doing well today!

    Yes, this can be done by using the pre-populate option available in most of the fields.

    For example, if you want to add /?some-parameter=value to the page’s URL, you can then catch this in a Text field like this:

    https://monosnap.com/file/eQpMFLqvbznqqlknWFGiUZz4sVpbHd

    You can also use a Hidden field and set the default value to “Query Parameter” and provide the parameter’s name.

    Warm regards,
    Pawel

Viewing 1 replies (of 1 total)

The topic ‘Set dynamic string value while form creation’ is closed to new replies.