Title: Form Calculation Variables
Last modified: April 6, 2025

---

# Form Calculation Variables

 *  Resolved [stumur](https://wordpress.org/support/users/stumur/)
 * (@stumur)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/form-calculation-variables/)
 * Sorry to bother you guys. I have a small live coverband website that I’m struggling
   to do the calculations of a Forminator form I’ve created, where it needs to display
   the correct search results page in users’ search results, when they make certain
   select combinations of the 3 different drop-down boxes of the form. In short,
   the form has has 3 drop-down select boxes:
 * {I Need A:} 1. top 40 band, 2. solo or duo, 3. string quartet, 4. party dj
 * {For My:} 5. Wedding Event, 6. Corporate Event, 7. Private Party
 * {At My Location:} 8. London, 9. Paris, 10. New York, 11. Los Angeles
 * I then have a Calculation element added, to try to make the calculation of the
   varied drop-down combinations work, to display the correct search result page–
   e.g. a combination of 4. party dj + 5. wedding event + 8. London = 17 total, 
   which, when submitted, should then display the correct page with a listing of
   about 20 party DJ’s available for hire, for weddings – in London.
 * But so far, I can only get the pages linked to the {I Need A:} drop-down to display
   search result pages from numbers 1, 2, 3 and 4. – {For My} and {At My Location}
   drop-downs have no effect.
 * My calc formula looks like this: {select-4}+{select-1}+{select-3}, but this looks
   like an incomplete formula to me. I don’t see equals signs or anything anywhere
   to complete the formula, to generate the resultant search pages. Am I doing this
   wrong?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fform-calculation-variables%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/form-calculation-variables/#post-18401837)
 * Hello [@stumur](https://wordpress.org/support/users/stumur/)
 * Hope you are doing well today.
 * The calculations field does not have an equal sign because it sums the value 
   automatically. Your formula appears to be correct, but have you added the conditions
   to your desired results?
 * If you want to redirect users to a new page based on their calculation results,
   follow these steps:
 * 1. Go to the “Behavior” tab.
    2. Add a new behavior. 3. Select the “Redirect”
   option. 4. Enter the target page URL. 5. Add the necessary conditions. For example,
   if the sum is greater than 10, it should redirect to Page 1.
 * You will need to create multiple redirect behaviors and specify the required 
   conditions for each one.
    [https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#behavior-forms](https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#behavior-forms)
 * > [View post on imgur.com](https://imgur.com/a/xiaT1vn)
 * If you just want to show some message with a link you can use the message type
   havevior and just add the required conditions.
 * > [View post on imgur.com](https://imgur.com/a/RTLUBww)
 * Kind Regards
    Amin
 *  Thread Starter [stumur](https://wordpress.org/support/users/stumur/)
 * (@stumur)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/form-calculation-variables/#post-18402658)
 * Amin, you’re my hero.. working GREAT now, thank you SO much! One last question:
   
   I have a few hidden data capture points in the form, like User’s Email Address,
   User’s Display Name, User’s IP Address. They’re hidden and are supposed to populate
   automatically, but of course they never do, except the ip address, which is pretty
   useless. Is there a way to make the name and email fields reliably capture? Or
   to somehow capture the user phone number too (other than adding this as a data
   entry box)?
 *  Plugin Support [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/form-calculation-variables/#post-18403331)
 * Hello [@stumur](https://wordpress.org/support/users/stumur/)
 * When using a hidden field, the data should be captured from a source other than
   user input. Specifically, you can capture the user’s email address based on the
   email associated with the logged-in user when the form is submitted, this is 
   especially useful for capturing the email of logged-in users and the same rule
   applies to name.
 * Alternatively, you can use the pre-fill feature to populate the name and email
   address. To do this, you need to send the data as URL query parameters. Please
   refer to this document for more information on how to implement this: [https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#pre-populate-form-field-values](https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#pre-populate-form-field-values).
 * Kind Regards
    Amin
 *  Thread Starter [stumur](https://wordpress.org/support/users/stumur/)
 * (@stumur)
 * [1 year, 2 months ago](https://wordpress.org/support/topic/form-calculation-variables/#post-18406499)
 * Thank you for this, Amin, particularly for the pre-fill suggestion, though I’m
   slightly confused – does pre-fill help in my case, considering the way that my
   form works that I outlined above? Currently, my form just generates the correct
   redirection page that their combination of dropdown boxes sends them to, – their
   event location and type of act they want sends them to a specific results page
   to suit. I know if they were somehow ‘logged in’ somewhere, then email or phone
   might be harvestable, but is it even possible to capture data (email address 
   or a phone number) if my form is just a redirect for search results? Wouldn’t
   they need to be ‘logged in’ or something for my form to be able to grab their
   info?
 *  Plugin Support [Nebu John – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport14/)
 * (@wpmudevsupport14)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/form-calculation-variables/#post-18408885)
 * Hi [@stumur](https://wordpress.org/support/users/stumur/),
 * The hidden fields fetch the email ID and other user-related data from WordPress
   usermeta of the logged-in users only. Please find more information about hidden
   field default values in our documentation here: [https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#default-value](https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#default-value)
 * The option to pre-populate any fields using query parameters will only work if
   the necessary data can be passed through the URL where the form is located. To
   assist you better, could you please share more details about where the email 
   ID and mobile number are coming from? This information will help us understand
   the context and guide you accordingly.
 * Best Regards,
    Nebu John
 *  Thread Starter [stumur](https://wordpress.org/support/users/stumur/)
 * (@stumur)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/form-calculation-variables/#post-18410910)
 * Thank you!

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

The topic ‘Form Calculation Variables’ 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/)

 * 6 replies
 * 3 participants
 * Last reply from: [stumur](https://wordpress.org/support/users/stumur/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/form-calculation-variables/#post-18410910)
 * Status: resolved