• Resolved antoinewpcontrol

    (@antoinewpcontrol)


    Hello,

    Thanks you for your amazing plugin.

    I’d like to know How to change a formula based on a radio choice :

    We got a fieldname1 = X

    Fieldname2 = radio with 2 options.

    If User select choice 1 of fieldname2:

    Fieldname 3 display X*1,5
    If user select choice 2 :

    Fieldname3 display X*2

    Thanks you !

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @antoinewpcontrol

    Thank you very much for using our plugin.

    You have some alternatives.

    1. You can enter the numbers 1.5 and 2 as the values of the fieldname2 choices, in whose case the equation would be: fieldname1*fieldname2

    2. Assuming the values of radio button choices are “A” and “B”, and not the numbers, you can use a conditional operation in the equation:
    fieldname1*IF(fieldname2 == "A", 1.5, 2)

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘How to change a formula based on a radio choice’ is closed to new replies.