How to change a formula based on a radio choice

[ad_1]

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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer