Title: Pass value to forms without using query string
Last modified: September 2, 2020

---

# Pass value to forms without using query string

 *  Resolved [nancy68](https://wordpress.org/support/users/nancy68/)
 * (@nancy68)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/pass-value-to-forms-without-using-query-string/)
 * Hi,
 * I would like to be able to pass a value to a form without using a query string.
   I have one form that I plan to use on several pages. There is a “Product of Interest”
   field with 5 products. I would like to have the product preselected according
   to the page the visitor is on so that I can use the same form on different pages.
   I am comfortable with setting a variable depending on the page but I need to 
   understand how to pass the variable to the form field.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Dimitris – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support6/)
 * (@wpmudev-support6)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/pass-value-to-forms-without-using-query-string/#post-13365844)
 * Hello there [@nancy68](https://wordpress.org/support/users/nancy68/)
 * You could work around that with some custom code though. This would require a**
   Hidden** field, in which you’ll be getting the current page ID:
    [https://monosnap.com/file/Muk1Uj11M6CB4WRXnQmIKNitF6dP0s](https://monosnap.com/file/Muk1Uj11M6CB4WRXnQmIKNitF6dP0s)
 * Then you could use some JS code to force the value of another field.
    Please 
   do let me know what field type you use for the “Product of Interest” so I can
   provide a working example to you. 🙂
 * Thank you,
    Dimitris
 *  Plugin Support [Dimitris – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support6/)
 * (@wpmudev-support6)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/pass-value-to-forms-without-using-query-string/#post-13428075)
 * Hello [@nancy68](https://wordpress.org/support/users/nancy68/)
 * I’m closing this topic due to recent inactivity.
    Feel free to post back any 
   update and we can re-open it and carry on troubleshooting. 🙂
 * Thank you,
    Dimitris

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Pass value to forms without using query string’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Dimitris – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support6/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/pass-value-to-forms-without-using-query-string/#post-13428075)
 * Status: resolved