Title: Set dynamic string value while form creation
Last modified: May 27, 2022

---

# Set dynamic string value while form creation

 *  Resolved [plgupa](https://wordpress.org/support/users/plgupa/)
 * (@plgupa)
 * [4 years ago](https://wordpress.org/support/topic/set-dynamic-string-value-while-form-creation/)
 * 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](https://wordpress.org/support/users/wpmudev-support9/)
 * (@wpmudev-support9)
 * [4 years ago](https://wordpress.org/support/topic/set-dynamic-string-value-while-form-creation/#post-15686662)
 * Hello [@plgupa](https://wordpress.org/support/users/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](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.

 * ![](https://ps.w.org/forminator/assets/icon-256x256.gif?rev=3443182)
 * [Forminator Forms – Contact Form, Payment Form & Custom Form Builder](https://wordpress.org/plugins/forminator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forminator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forminator/)
 * [Active Topics](https://wordpress.org/support/plugin/forminator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forminator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forminator/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Imran – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support9/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/set-dynamic-string-value-while-form-creation/#post-15686662)
 * Status: resolved