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

    Show or hide fields based on selected items in payment field products

    Asked by DVandy on June 20, 2013 at 06:42 PM

    I can not figure out how to show or hide fields using the payment field choices.

    I have created a sample form for you to set this up.

    This is what I want:

    o When the radio button for "New Product 1" is selected, the words "This should show if the First choice is  chosen" should show.

    o When the radio button for "New Product 2" is selected, the words "This should show if the Second choice is  chosen" should show.

    o When the radio button for "New Product 3" is selected, the words "This should show if the Third choice is  chosen" should show.

     

    These should show or hide based on the button ticks--it should not matter how many of any category are chosen. I want to be able to show or hide fields based on what radio button is ticked, not how many items are chosen. If I go by how many items are chosen, and if you choose more than one item in each catergory, you can't show or hide fields correctly, because then the actions get confused because there is more than one category populated with numbers.

     

    If you look at the conditional formatting example in the form, it will hide or show the first choice based on how many items are picked, not whether the radio button is selected or not. That's not what I want.

     

    This seemed to change, because I had several forms with many actions based on the button ticks. Now none of them are working.

    Page URL:
    http://form.jotform.co/form/31707419581861

    hide fields condition payment
  • Profile Image
    JotForm Support

    Answered by jonathan on June 20, 2013 at 08:04 PM

    Hi,

    Unfortunatelly you cannot do this using the payment fields. The radio options in the payment field is not similar to the regular Radio options in the form tools.

    If you checked the condtions when you try using this, you can see that there is a value assigned to the conditions as "1002", "1003" and so on..

    --

    The most that can be done is by using the form's source code, and manipulate the html code to setup the products/items to be under a collapse field that can be then be shown/hidden (via this guide How-to-Hide-or-Show-Multiple-Fields-at-Once-Based-On-a-Single-Conditional-Entry)

    It is quite complex, but this 2 complex guides also describe this.

    How-to-Have-a-Sub-Category-Groups-or-Sub-Labels-on-a-Purchase-Order-Form

    http://www.jotform.com/help/181-How-to-Add-a-Sub-Category-to-an-Order-Form

    On the 2nd guide, the items are moved manually in the html source to be within the collapse fields elements, so, when the show/hide condtion is done on the collapse field, it will then include the payment items.

    Hope this help. Please update us if you need further assistance.

    Thanks.

  • Profile Image

    Answered by DVandy on June 20, 2013 at 08:17 PM

    So then what does the choice called "My Products" do? Look at the second rule in the conditional formatting. What is the "My Products" choice, and how does it get used?

     

    I don't understand! The forms used to do what I am asking. Now they don't. It used to work--I had about 8 forms that did this. Now none of them work, because the capability to do that was lost. What happened? If it used to work, why can't it be fixed again, so that it does?

     

    I don't want to have to recreate all my forms again.

  • Profile Image
    JotForm Support

    Answered by jonathan on June 20, 2013 at 08:43 PM

    Hi,

    I agree with you, and I can also see that.

    I did some recent test on this scenario. Check my conditions setup below.

    For item 3, I did a different condition just to find out which one will work.

     

    The final 3 conditions looks like this

     

    BUT no matter how I tweak the rules, the condition just would not affect in the live form.
    This is the test form http://www.jotformpro.com/form/31707566324960

    I am not sure why the item options are available from the payment field into the condition wizards rules but would not work anyway.

    I will forward this topic to our next level support. Perhaps there is an actual process to achieve what you need within the payment field options using the Condition Logic feature.

    Please inform us if you have further inquiry.

    Thanks.

     

  • Profile Image
    JotForm Support

    Answered by jonathan on June 20, 2013 at 08:48 PM

    Hi,

    Sorry, I missed to asked, can you please tell which among your form you previously have this method working on payment field options?

    I immediately checked this 2 forms already

    http://www.jotform.us/form/30629508226151

    http://www.jotformpro.com/form/30696415381962

    I am just not sure if you have setup conditions on the payment fields on those 2 forms. But I'd like to know which one you had it working before. Maybe I can find more answer if I can check such form.

     

    Thanks.

  • Profile Image

    Answered by DVandy on June 20, 2013 at 08:49 PM

    Yes, I need to have these work again. My whole form is based on what options are chosen right at the start:

    o If they choose option 1, then I show one set of fields

    o If they choose option 2, then I show another set

    o and so on...

     

    As I said, this used to work, and now it does not. I have lost several sales because the forms did not populate correctly, therefore the forms were submitted wrong.

  • Profile Image
    JotForm Support

    Answered by jonathan on June 20, 2013 at 08:52 PM

    Hi,

    Sorry, I missed to asked, can you please tell which among your form you previously have this method working on payment field options?

    I immediately checked this 2 forms already

    http://www.jotform.us/form/30629508226151

    http://www.jotformpro.com/form/30696415381962

    I am just not sure if you have setup conditions on the payment fields on those 2 forms. But I'd like to know which one you had it working before. Maybe I can find more answer if I can check such form.

     

    Thanks.

  • Profile Image

    Answered by DVandy on June 20, 2013 at 08:57 PM

    I can't remember right off hand if they worked or not. Here are a few links to the forms that I was using before this happened:

    http://form.jotformpro.com/form/30696415381962

    http://form.jotform.us/form/30629508226151

  • Profile Image
    JotForm Support

    Answered by jonathan on June 20, 2013 at 09:07 PM

    Thank you for accomodating the request. I confirmed and checked the 2 forms.
    The conditions setup for the payment field are not working as setup on the forms condition rules.

    I had elevated this already to our next level support .

    You will be notified via this thread and in your email once we have updates about this issue.

    regards,

  • Profile Image

    Answered by sbohler on July 24, 2013 at 08:03 PM

    I need to do this as well but don't see any tools to do it.

    How to you apply show/hide field conditions to product options within the payment wizard?

  • Profile Image

    Answered by sbohler on July 24, 2013 at 08:09 PM

    I want product options to show only when the customer selects the product.  Then we won't have multiple options for multiple products showing when they only want to select 1 of them.

    Thanks in advance,

    Scott

  • Profile Image
    JotForm Support

    Answered by Welvin on July 24, 2013 at 08:34 PM

    Hi Scott,

    Request you to please open a separate thread so we can assist you there.

    Thanks