Calculated field text string | WordPress.org

[ad_1]

Hello @ohtusabes

Thank you very much for using our plugin. To create dependencies related with multiple fields you can use a calculated field as an auxiliary. However, the implementation depends on your project.

For example, assuming have three fields, fieldname1, fieldname2, and fieldname3, and you want to activate the fieldname3 field only if the values of both fields fieldname1 and fieldname2 are “Si” and ignore it otherwise.

In this hypothetical case, you can insert a calculated field in the form (you can hide it by ticking a checkbox in its settings) and enter the equation:


(function()
if(AND(fieldname1=='Si', fieldname2=='Si')) n);
else n);

)()

Note that fieldname3 includes the |n modifier. It tells the plugin you are referring to the field’s name directly instead of its value.

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