Validating fields based on multiple other fields

  • mschmitt
    Asked on September 3, 2015 at 10:40 AM

    I would like to make a requirement rule that is based on multiple fields, specifically:

     

    If field A = value 1, then field B must be > field C (number)

    If field A = value 2, then field B must be > field C (number) * [multiplier value]

     

    Is writing this sort of condition possible?

  • Elton Support Team Lead
    Replied on September 3, 2015 at 1:09 PM

    I think that's possible with "Update a form field value" condition.

    Validating fields based on multiple other fields Image 1 Screenshot 20

    Kindly give it a try and let us know if we can be of further assistance. Thanks!

  • mschmitt
    Replied on September 3, 2015 at 1:22 PM

    Thanks for the quick response, but I don't think it's quite what I'm looking for. I don't want to calculate a field value based on another field, I just want to make it a requirement that the form can't be submitted if the field value is too low relative to another field. It doesn't seem like the 'Update a form field value' option has that functionality.

  • Mike
    Replied on September 3, 2015 at 4:44 PM

    There is no built-in functionality in JotForm specific for that case. Although, in theory it might be possible to use some combination of conditions and fields to achieve something similar. For example, this is possible to Hide a Submit button based on specific rules, or make Required some input with a Change Attributes condition. 

    Validating fields based on multiple other fields Image 1 Screenshot 20