Calculation issue | WordPress.org

[ad_1]

Hello @veroak26

Thank you very much for using our plugin. Yes, you can implement the project with our plugin.

There are multiple implementation alternatives. One of them is using conditional statements.

Assuming the first dropdown is the fieldname1 and fieldname2 is the second dropdown. You can insert a calculated field in the form and enter the following equation through its “Set equation” attribute:

(function(){
var a = fieldname1, b = fieldname2;

if(AND(a == 'Option 1', b == 'x')) return 286;
if(AND(a == 'Option 1', b == 'y')) return 187;
if(AND(a == 'Option 1', b == 'z')) return 547;

if(AND(a == 'Option 2', b == 'a')) return 1547;
if(AND(a == 'Option 2', b == 'b')) return 6455;
if(AND(a == 'Option 2', b == 'c')) return 54;

if(AND(a == 'Option 3', b == 'l')) return 45;
if(AND(a == 'Option 3', b == 'm')) return 56969;
if(AND(a == 'Option 3', b == 'n')) return 654;
})()

To distribute the fields in columns you can use a DIV field and select the number of columns through its settings:

Or you can assign some predefined class names directly to the fields:

Learn more about distributing the fields in columns by reading the following blog post:

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