Conditions - Are There Any Limits ?

  • Profile Image
    MarkTarr
    Asked on April 03, 2011 at 12:03 PM

    Hi,

    I am currently creating a form, where I need to use conditions where values match the user imput to show or hide parts of the form.

     

    Are there any limits on how many conditions a form can use.

     

    I would use 3 rules..

    1 with around 3000 conditions

    1 with around 2500 conditions, and

    1 with around 500 conditions.

     

    Many Thanks

  • Profile Image
    brx250
    Answered on April 03, 2011 at 12:28 PM

    Hi there,

    Thank you for using JotForm!

    To answer your question, technically there is no limit to how many conditions you can setup on a single form. But, to implement this large number of conditions will be impractical. Each condition is evaluated every time you load your form. So imagine loading more than 3000 conditions on every load. Your browser will take forever to load it assuming that the form doesn’t break first.

     

    Hope this helps!

    ___________________________________________________________

    Albert | JotForm Support

  • Profile Image
    MarkTarr
    Answered on April 03, 2011 at 03:06 PM

    Thanks for reply.

     

    What I want to do is have 2 text fields available but only dispaly one of them depending on a post code.

     

    So the user would see...

    Enter Postcode:  [     ]

     

    Then if they enter for example one of AB1, AB2, AB3, AB4, AB5 they would see...

    Enter Postcode:  [ AB1 ]

    {Text Field 1}

     

    If they enter anything other than AB1, AB2, AB3, AB4, AB5 they would see...

     

    Enter Postcode:  [ AB6 ]

    {Text Field 2}

    Both Text Field 1 & Test Field 2 would be hidden, until a postcode has been entered.
    Now this is where I am struggling...
    I have the first part all setup, by using 
    That way text field 1 is hidden all the time, expect when the defined postcode is entered.
    Problem is with text field 2, because what would be ideal is that too would be hidden, until a post code is entered an then show by NOT being one of the postcodes.
    But, everything I have tried results in text field 2 showing BEFORE a 3 digit post code has been entered.
    The only way I can think is to have my 20 postcodes set as a show text field 1, but then the remaining 2700 UK postcodes defined as text field 2.
    But this will cause the problems as you have stated above.
    Hope you can understand what I am trying to do
    Many Thanks
  • Profile Image
    MarkTarr
    Answered on April 03, 2011 at 03:19 PM

    What I Want To Do Is....

     

     

    Setup



    Start Page


    Defined Postcode


    Incorrect Postcode

     


     


  • Profile Image
    MarkTarr
    Answered on April 03, 2011 at 03:25 PM

    Problem I am having is that until I have Typed the WHOLE "AB1" then text field 2 shows.

     

    I can get text field 2 to hide when nothing is typed, but as soon as I start typing it shows tect field 2..

     

     


  • Profile Image
    NeilVicente
    Answered on April 04, 2011 at 08:46 AM

    Hi,

    I think the solution to your issue is to hide Text Field 2 when the Enter Postcode field is equal to the first two or three characters of the post codes with which you want to show Text Field 1. In your example, the post codes are AB1, AB2, AB3, AB4, and AB5. What you would need to do is hide Text Field 2 when Enter Postcode equals to A and AB

    Take a look at the conditions of this Sample Form I made.

     

     

    Hope this post helps. Let me know if you have any further questions.

     

    Regards,

    Neil