• Resolved sireki

    (@sireki)


    Hi,

    I’m using the pro version.
    I would like to ask if it is possible to set a maximum value for a Total Field.
    For example:
    Total filed amount:
    total_field_id_2 * 0.2
    But this can be at most:
    range_field_id_0 * 120000

    Can this be set somehow?

    Thanks!

    Daniel

Viewing 1 replies (of 1 total)
  • Hello,

    Thanks for choosing our product as the best of choice!
    Actually, there can be added a JavaScript if/else statement to the Calculator formula of a total element. Please check it below:
    https://prnt.sc/uywpm4
    As an example we have a total calculation formula with range_field_id_0 * 12, but, the max result is 10000, so you can add the following code:
    if ( range_field_id_0 * 12 >= 10000 ) { 10000 } else { range_field_id_0 * 12 }
    So if the total calculation will be higher than 10000 it will always show 10000, if it is lower – the result of the calculation result will be applied.

    Regards

Viewing 1 replies (of 1 total)

The topic ‘Maximum value for a Total Field’ is closed to new replies.