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

    What is the efficient way to use conditions when showing and hiding fields

    Asked by ppsa on October 09, 2013 at 07:17 PM

    <!-- /* Font Definitions */ @font-face {font-family:"MS 明朝"; mso-font-charset:78; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:-536870145 1791491579 18 0 131231 0;} @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:-536870145 1107305727 0 0 415 0;} @font-face {font-family:Cambria; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:0; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:-536870145 1073743103 0 0 415 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:Cambria; mso-ascii-font-family:Cambria; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"MS 明朝"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Cambria; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-family:Cambria; mso-ascii-font-family:Cambria; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"MS 明朝"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Cambria; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.WordSection1 {page:WordSection1;} -->

    I got 5 different membership categories, and I have 5 different html entries describing them. What I’m looking for is that when the form is open all 5 descriptions are hidden, and depending on the category you select they will show. I try doing it with if logic but something went wrong.   

    Thanks.

    Like always, I can’t stop saying this but your customer support ROCKS!!!

    JohnV

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

    style size source hidden conditions JotForm
  • Profile Image
    JotForm Support

    Answered by ardy0689 on October 09, 2013 at 08:10 PM

    Hello JohnV, thanks for supporting our team!

    The problem is on your defined conditions about the categories and their HTML descriptions. It just that when JotForm analyzes upon loading the form, it returns both TRUE and at the same time FALSE and JotForm can't decide which is which so it decides to show all of them.

    You don't need to add Hide multiple field actions when you set a rule to Show one field only under the same Condition Rule. Since, if you set a condition rule to "Show" a field, it automatically hides it from the beginning. Putting multiple hide actions will only make it redundant and confuses JotForm.

    Plus, you also put a separate condition group wherein you hide all HTML descriptions when the Category is empty which makes it even more redundant.

    I cloned your form and simplified your condition sets. You may clone the form to customize it further. 

    http://form.jotformpro.com/form/32817312467960

     

     

     

    If you need further help on any issues, you are always welcome. Thank you!