• Resolved gerikg

    (@gerikg)


    Hello,

    I’m using Field Type: Number

    I would like the MAX be “fieldname11 – 1” when I try that it says “Please enter a value less than or equal to 11.”

    fieldname11 works
    fieldname11 – 1 does not

    • This topic was modified 3 years, 4 months ago by gerikg.
Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @gerikg

    If you want to modify the “MAX” attribute dynamically, you must do it by programming.

    For example, assuming the number field is the fieldname123, and you want to modify its MAX attribute’s value as fieldname11-1

    1. Insert a calculated field in the form as an auxiliary (you can configure it as hidden by ticking a checkbox in its settings).

    2. Enter the following equation in the settings of the calculated field:

    
    getField(123).jQueryRef().find('input').attr('max', fieldname11-1);
    

    The getField operation receives the numeric part of the field name as its parameter and returns the object representation of the field.

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Min & Max formula’ is closed to new replies.