• Resolved Bakhshi

    (@bakhshi)


    Hi
    Please look at this link!
    link

    If you don’t choose the brand, it shows the result!
    I want to display the result after selecting the brand and display the following message if the brand is not selected :
    ? “This field is required”

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @bakhshi

    You should to use a conditional operation in the equation to evaluate the mathematical operation only if the condition is satisfied, as follows:

    
    IF(AND(fieldname2|r != '', fieldname5|r != '', fieldname9|r != ''), fieldname2+fieldname5, '')
    

    Best regards.

    Thread Starter Bakhshi

    (@bakhshi)

    thanks

    For Calculate Button
    I ticked the option:
    display “calculation in progress” indicator

    But it doesn’t show
    The calculation is in progress!

    Plugin Author codepeople

    (@codepeople)

    Hello @bakhshi

    The equations in your form are evaluated fast, for example, for server side equations, or equations that call external services, the evaluation would be slower, and in this case the plugin show a progress animation.

    Best regards.

    Thread Starter Bakhshi

    (@bakhshi)

    I used this code:

    IF(AND(fieldname2|r != ”, fieldname5|r != ”, fieldname9|r != ”), fieldname2+fieldname5, ”)

    It is ok!
    But it does not display the required field message
    When you don’t select one of the fields!

    Plugin Author codepeople

    (@codepeople)

    Hello @bakhshi

    You should enter the following piece of code as the onclick event of the calculate button:

    
    jQuery(this.form).valid();
    

    Best regards.

    Thread Starter Bakhshi

    (@bakhshi)

    thank you very much indeed.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Result dependency on required field’ is closed to new replies.