• Resolved joa888a

    (@joa888a)


    Is it possible to show total estimate once all required options are selected.

    • This topic was modified 1 year, 4 months ago by joa888a.
Viewing 1 replies (of 1 total)
  • Plugin Author CodePeople2

    (@codepeople2)

    Hello @joa888a

    Thank you very much for using our plugin. Yes, that’s possible. You need only to include a conditional statement in the equation to evaluate the main code only if the conditions are satisfied. For example, assuming you have the equation: fieldname1+fieldname2+fieldname3, and you want to evaluate the equation only if the user populated the three fields. In this case, you can modify the equation as follows:

    (function(){
    if(AND(fieldname1,fieldname2,fieldname3)) return fieldname1+fieldname2+fieldname3;

    return '';
    })()

    If the values of the fieldname1, fieldname2, and fieldname3 fields can be the number zero, you can compare the fields’ raw values with the empty string as follows:

    (function(){
    if(AND(fieldname1|r != '',fieldname2|r != '',fieldname3|r != '')) return fieldname1+fieldname2+fieldname3;

    return '';
    })()

    The plugin preprocesses the fields’ values to use them in mathematical operations, the |r modifier allows you to access the fields’ raw values.

    Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Hide Calculation Field Until All Elements are Selected’ is closed to new replies.