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

    Logic appear not to be working correctly

    Asked by cflights on April 08, 2013 at 03:56 PM

    Hi I have a form Make a Booking in my account - cflights.

    I have applied logic to display 2 specific fields if 1 person makes a booking

    If 2 people make a booking the 2 fields for person 1 will be displayed plus 2 further fields for person 2.

    I am using the show / hide logic however it is not showing / hiding the correct fields. I have only applied this logic to the 1 and 2 person booking before adding for all the other possible combinations and have tested but no luck.

    Any guidance appreciated

    Thanks

    A

    thanks
  • Profile Image

    Answered by pinoytech on April 08, 2013 at 04:09 PM

    Hi there,

    Which part of your form you want to achieve this? Can you please provide us the conditions you want to achieved into your form for further assistance?

    Thank you!

  • Profile Image

    Answered by cflights on April 08, 2013 at 04:15 PM

    Hi, thanks for the response.

    An example...

    There are 2 payment mehods at the top of the form. When the preferred one is selected there will be a list (or dropdown) of the number of people to be booked.

    If say the solo flight for 1 person is booked using either payment method then in the passenger section only the fields for passenger 1 should be seen ie name and weight. The other fields in the passengers section should be hidden

    If the 2 passenger option is selected then in the passenger section it should show the name and weight fields for passengers 1 and 2 with the rest hidden.

    This logic would continue for all passenger nukbers available.

    Hope this makes sense.

    Thanks

    A

  • Profile Image

    Answered by pinoytech on April 08, 2013 at 04:25 PM

    Hi,

    Can you please take a look at this cloned form? http://www.jotformpro.com/form/30976757249975?

    Thank you!

  • Profile Image

    Answered by cflights on April 08, 2013 at 04:37 PM

    Hi, yes that is doing what I would like to see for the direct payment method, I would need to do the same for the Paypal payment method.

    Is this different logic to the way I had it set up.. is it posible to see the logic please. ?

    Many thanks

    A

  • Profile Image

    Answered by cflights on April 08, 2013 at 06:09 PM

    Hi Pinoytech,

    Thanks for your help so far...

    Where should I go from here... are my logic settings OK but there is a script issue or did I get my logic wrong ?

    Your input to finalise this would be appreciated.

    Thanks

    A

  • Profile Image

    Answered by pinoytech on April 08, 2013 at 06:55 PM

    Hi A,

    Your form's logic settings are OK and it's working fine. Here's your form that I've cloned which is working fine.

    If you need further assistance, do let us know.

    Thank you!

  • Profile Image

    Answered by cflights on April 08, 2013 at 07:01 PM

    Hi again, and thanke for getting back.

    It appears you have taken a look at the copy of the Master Form... the issue I am having is actially with the form called Master Booking Form as this has the most recent pricing structure.

    I have noticed that if a price field is used in a logic statement then when the price needs to be changed then the logic also needs to be updated.

    If you would be kind enough to take a look at the Master Booking Form that would be appreciated as it does appear to have issues with the logic.

    Many thanks
    A

     

  • Profile Image

    Answered by pinoytech on April 08, 2013 at 07:59 PM

    Hi A,

    Sorry for the delay. With regards to the conditions, try to apply this conditions in to your form.

    ----------------Passenger 2------------------

    If "Please select package" field "Equals To" 2 person special - 265 GBP

    If "Please select package" field "Equals To" 3 person special - 395 GBP

    If "Please select package" field "Equals To" 4 person special - 525 GBP

    If "Please select package" field "Equals To" Weekday special for 2 people - 230 GBP

    If "Please select package" field "Equals To" Weekday special for 3 people - 345 GBP

    If "Please select package" field "Equals To" Weekday special for 4 people - 460 GBP

    If "Please select package" field "Equals To" Weekday special for 5 people - 575 GBP

    If "Please select package" field "Equals To" Group special for 5 people - 575 GBP

    If "Please select package" field "Equals To" Group special for 6 people - 690 GBP

    If "Please select package" field "Equals To" Group special for 7 people - 805 GBP

    If "Please select package" field "Equals To" Group special for 8 people - 920 GBP

    If "Please select package" field "Equals To" Group special for 9 people - 1,035 GBP

    If "Please select package" field "Equals To" Group special for 10 people -1,150 GBP

    If "Any" of these conditions are matched

    Then "Show" Passenger 2 Field

    Then "Show" Passenger 2 approx w... Field

     

    ----------------Passenger 3------------------

    If "Please select package" field "Equals To" 3 person special - 395 GBP

    If "Please select package" field "Equals To" 4 person special - 525 GBP

    If "Please select package" field "Equals To" Weekday special for 3 people - 345 GBP

    If "Please select package" field "Equals To" Weekday special for 4 people - 460 GBP

    If "Please select package" field "Equals To" Weekday special for 5 people - 575 GBP

    If "Please select package" field "Equals To" Group special for 5 people - 575 GBP

    If "Please select package" field "Equals To" Group special for 6 people - 690 GBP

    If "Please select package" field "Equals To" Group special for 7 people - 805 GBP

    If "Please select package" field "Equals To" Group special for 8 people - 920 GBP

    If "Please select package" field "Equals To" Group special for 9 people - 1,035 GBP

    If "Please select package" field "Equals To" Group special for 10 people -1,150 GBP

    If "Any" of these conditions are matched

    Then "Show" Passenger 3 Field

    Then "Show" Passenger 3 approx w... Field

     

    ----------------Passenger 4------------------

    If "Please select package" field "Equals To" 4 person special - 525 GBP

    If "Please select package" field "Equals To" Weekday special for 4 people - 460 GBP

    If "Please select package" field "Equals To" Weekday special for 5 people - 575 GBP

    If "Please select package" field "Equals To" Group special for 5 people - 575 GBP

    If "Please select package" field "Equals To" Group special for 6 people - 690 GBP

    If "Please select package" field "Equals To" Group special for 7 people - 805 GBP

    If "Please select package" field "Equals To" Group special for 8 people - 920 GBP

    If "Please select package" field "Equals To" Group special for 9 people - 1,035 GBP

    If "Please select package" field "Equals To" Group special for 10 people -1,150 GBP

    If "Any" of these conditions are matched

    Then "Show" Passenger 4 Field

    Then "Show" Passenger 4 approx w... Field

     

    ----------------Passenger 5------------------

    If "Please select package" field "Equals To" Weekday special for 5 people - 575 GBP

    If "Please select package" field "Equals To" Group special for 5 people - 575 GBP

    If "Please select package" field "Equals To" Group special for 6 people - 690 GBP

    If "Please select package" field "Equals To" Group special for 7 people - 805 GBP

    If "Please select package" field "Equals To" Group special for 8 people - 920 GBP

    If "Please select package" field "Equals To" Group special for 9 people - 1,035 GBP

    If "Please select package" field "Equals To" Group special for 10 people -1,150 GBP

    If "Any" of these conditions are matched

    Then "Show" Passenger 5 Field

    Then "Show" Passenger 5 approx w... Field

     

    ----------------Passenger 6------------------

    If "Please select package" field "Equals To" Group special for 6 people - 690 GBP

    If "Please select package" field "Equals To" Group special for 7 people - 805 GBP

    If "Please select package" field "Equals To" Group special for 8 people - 920 GBP

    If "Please select package" field "Equals To" Group special for 9 people - 1,035 GBP

    If "Please select package" field "Equals To" Group special for 10 people -1,150 GBP

    If "Any" of these conditions are matched

    Then "Show" Passenger 6 Field

    Then "Show" Passenger 6 approx w... Field

     

    ----------------Passenger 7------------------

    If "Please select package" field "Equals To" Group special for 7 people - 805 GBP

    If "Please select package" field "Equals To" Group special for 8 people - 920 GBP

    If "Please select package" field "Equals To" Group special for 9 people - 1,035 GBP

    If "Please select package" field "Equals To" Group special for 10 people -1,150 GBP

    If "Any" of these conditions are matched

    Then "Show" Passenger 7 Field

    Then "Show" Passenger 7 approx w... Field

     

    ----------------Passenger 8------------------

    If "Please select package" field "Equals To" Group special for 8 people - 920 GBP

    If "Please select package" field "Equals To" Group special for 9 people - 1,035 GBP

    If "Please select package" field "Equals To" Group special for 10 people -1,150 GBP

    If "Any" of these conditions are matched

    Then "Show" Passenger 8 Field

    Then "Show" Passenger 8 approx w... Field

     

    ----------------Passenger 9------------------

    If "Please select package" field "Equals To" Group special for 9 people - 1,035 GBP

    If "Please select package" field "Equals To" Group special for 10 people -1,150 GBP

    If "Any" of these conditions are matched

    Then "Show" Passenger 9 Field

    Then "Show" Passenger 9 approx w... Field

     

    ----------------Passenger 10------------------

    If "Please select package" field "Equals To" Group special for 10 people -1,150 GBP

    If "Any" of these conditions are matched

    Then "Show" Passenger 10 Field

    Then "Show" Passenger 10 approx w... Field

    Note: same sequence of condition if you are paying using PayPal.
    Feel free to contact us again if you need further assistance.
    Thank you!
  • Profile Image

    Answered by pinoytech on April 09, 2013 at 09:34 AM

    Hi A,

    Is everything working fine now?

    I am looking forward hearing from you.

    Have a great day!

  • Profile Image

    Answered by cflights on April 09, 2013 at 11:32 AM

    Hi Pinoytech,

    Yes thanks you.. using the logic you recommended it works fine so thank you for your assistance.

    I am now experiencing an issues with receiveing emails... about 30 minutes ago I sent 2 test emails but they have not arrived, I also filled out the form but again the email notification has not arrived and I am using - noreply@jot.. as the sending address. Any ideas ?

    Many thanks

    A

  • Profile Image

    Answered by glennlee on April 09, 2013 at 11:38 AM

    Hi A,

    We are glad the logic recommended by our colleague PinoyTech has solved the issue. For new topic can you please open a new thread. Please use this link. Thanks!

  • Profile Image

    Answered by cflights on April 09, 2013 at 11:42 AM

    OK will do...thanks... A

  • Profile Image

    Answered by cflights on April 09, 2013 at 03:32 PM

    Hi... I have needed to reopen this thread as there is an issue.

    I set up the logic... saved the form.. output the source ... embeded source in page... all works fine.

    I then wanted to change one of the logic statements.. reopened form in Jot editor and the logic functions hide / show that I set up as per above post are not there ?

    I output the source code again and can confirm the logic functions are no longer associated with the form

    This means the jot 'master' form does not match what is on my site and more frustrating is that I will need to re-make thoses functiuons... but will they save ?

    Advice appreciated.

    Thanks

    A

  • Profile Image
    JotForm Support

    Answered by Mike_T on April 09, 2013 at 04:10 PM

    I would like to recommend you to clone the form every time you want to edit it, so that you will have backup forms.

    Conditions look good on a 'Clone of Master Booking Form' version. Can you use this form for further edits?

    If you reproduce the issue with missing conditions, please let us know. Thank you.

  • Profile Image

    Answered by cflights on April 09, 2013 at 07:26 PM

    Hi Mike_T,

    Thanks for the response. Unfortunatly the cloned form is an old version.

    However give that I have made all the logic statements then saved and then they have basically disapeared.. I could end up doingthe same again ?

    I do not understand why the saved version of a correctly formatted form is basically loosing data from the construction of the form ?

    Thanks

    A

  • Profile Image

    Answered by jeanettebmz on April 09, 2013 at 11:32 PM

    We are currently having a problem that might prevent forms to be saved, and it might be affecting in your case.

    I have already informed our developers about the issue and they are taking care of it , so it should be fixed ASAP