Conditionally required field error remains after condition corrected

  • bdoodle
    Asked on March 13, 2015 at 1:02 PM

    I have a conditional field requirement as follows:

    If the crosscut spinnaker color count calculation field is > 0 (reflecting that the user has specified one or more colors in the crosscut panel fields), I require that the drop down box, Spinnaker Type Ordered, be filled. 

    When an unconditionally required field is omitted and you hit Submit Form, an error is displayed under the Submit Form buttons.  When you fill in the required field, the error message disappears.  

    When my conditionally required field, Spinnaker Type Ordered, is empty but colors have been specified in the spinnaker color section as indicated by the crosscut spinnaker color count, and you hit Submit Form, the same error is properly displayed under the Submit Form buttons.  However, both methods of correcting the situation are problematic:

    When I remove the colors in the spinnaker color section which changes the crosscut spinnaker color count so that the conditionally required form is no longer required, the error under the Submit Form buttons remain.  The Spinnaker Type Ordered field is no longer highlighted as an error, but the main Submit Form error remains.  This is confusing and causes a user to continue looking for some error to fix. I'd like to get this fixed.  

    When I select a crosscut spinnaker type in Spinnaker Type Ordered, both the field and main errors under Submit Form buttons remain until I click somewhere else. Then all errors appropriately disappear.  This is less than ideal, but I can live with this. 

    My mainsail number and number color fields which are conditionally required based on each other operate in a third way.  When the non-empty field that prompted the requirement of the other field is emptied, The required field error immediately goes away, but you must click somewhere else for the main error under the Submit Form buttons to disappear.  I can also live with this.

    my form is: http://www.jotform.com//?formID=50455070789158

  • Mike
    Replied on March 13, 2015 at 4:13 PM

    I have created a test form and was able to reproduce the issue.

    http://form.jotformpro.com/form/50715927377969

    Conditionally required field error remains after condition corrected Image 1 Screenshot 20

    A bug report ticket has been attached to this thread and forwarded to our Development Team.

    We will let you know once we have any updates, however, there is no ETA at the moment.

  • bdoodle
    Replied on March 13, 2015 at 4:31 PM

    Thank you.

  • bdoodle
    Replied on April 9, 2015 at 11:35 AM

    I have an example of where this continues to occur.

    I have a field that appears twice on my forms. Once at the top and once within the contact information section farther down.  The second field is populated conditionally when the first field is filled.  It's "State / Province".  When it's left empty and the form is submitted, an error appears.  When I fill it at the top, the red error indicator at the top disappears, but it remains on the field below and the general form error message also remains.  This problem occurs in both Chrome and Firefox.  Didn't try other browsers.  It occurs when the form is embedded via iFrame or the reg script method.

    Example forms: http://www.madsails.com/Order_Buccaneer_sails.html or http://www.madsails.com/Order_Laser_sails.html

    Please see snippet below:

    Conditionally required field error remains after condition corrected Image 1 Screenshot 20

  • David JotForm Support
    Replied on April 9, 2015 at 12:42 PM

    Hi,

    Since the data is being input automatically, the form does not recognize that an entry was made to the field.  Simply clicking in the field that is showing as required will remove the requirement:

    Conditionally required field error remains after condition corrected Image 1 Screenshot 20

    If you have any further questions, please create a new thread so that we may address them properly.

  • bdoodle
    Replied on April 10, 2015 at 4:26 AM

    Thank you!

  • Ben
    Replied on April 10, 2015 at 10:42 AM

    In my colleague's name you are welcome.

    Do let us know if you have any further questions or issues and we would be happy to assist with them.