What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Populate one form based on submit buttons with different values

    Asked by designhero on January 21, 2017 at 01:14 PM

    Hi there

     

    I want to create a booking form which will be populated with information based on which button the user clicks.

    there are several locations:

    Edinburgh

    Glasgow

    Aberdeen

    for each location there are various options:

    Option 1- 1 hour booking

    Option 2- 2 hour booking

    Option 3- Party booking.

    When the user clicks the book now button, I need them to be directed to an enquiry form which is already populated with the location and booking option, then allow them to fill out other details such as name, email address etc.

     

     

    Page URL:
    http://www.bubblesoccerscotland.co.uk/locations-edinburghcentre2.php

  • Profile Image
    JotForm Support

    Answered by jonathan on January 21, 2017 at 02:52 PM

    You can achieve these using the Condition logic tool Update/Calculate Field feature.

    I suggest you review the following user guides:

    #1 https://www.jotform.com/help/286-How-to-Pass-Field-Value-to-Another-Field

    #2 https://www.jotform.com/help/268-Conditional-Logic-Inserts-Text-Calculation-Into-A-Field

    You may not need multiple submit buttons since the Submit button if multiple of them were in the form, will only do one same action every time when submitting the form.

    The Condition logic rules you create will take care of the form action base on the user response.

    Let us know if you need further assistance.