WS Form can calculate minimum and maximum field attributes of a series of fields.
Demo
Variables
The calculations in the demo above are achieved using the following variables:
Variable | Description | Client-Side Example |
---|---|---|
#field_min_id(id, id[, id]) |
Returns the ID of the field that contains the lowest number. | #calc(#field_min_id(1, 2, 3)) |
#field_max_id(id, id[, id]) |
Returns the ID of the field that contains the highest number. | #calc(#field_min_id(1, 2, 3)) |
#field_min_label(id, id[, id]) |
Returns the label of the field that contains the lowest number. | #text(#field_min_label(1, 2, 3)) |
#field_max_label(id, id[, id]) |
Returns the label of the field that contains the highest number. | #text(#field_min_label(1, 2, 3)) |
#field_min_value(id, id[, id]) |
Returns the value of the field that contains the lowest number. | #calc(#field_min_value(1, 2, 3, 4)) |
#field_max_value(id, id[, id]) |
Returns the value of the field that contains the highest number. | #calc(#field_max_value(1, 2, 3, 4)) |
You must specify 2 or more field ID’s for these variables to work.
If you use these variables in an action, such as Send Email, you should not include #calc
or #text