Calculated field does not display HTML code

[ad_1]

Hello @radovand

Thank you very much for using our plugin.

The plugin preprocesses the fields’ values in the equations to use with mathematical operations. However, the plugin includes modifiers.

What are the modifiers? The modifiers are symbols you add to the fields’ names in the equations to tell the plugin how to handle the fields’ values and modify the default plugin behavior.

A modifier is |r. The |r tells the plugin you want to use the field’s raw value instead of the preprocessed one.

So, the second equation could be:

(function()
return fieldname1)()

Other modifiers are |n, and |v. They are not necessary in your current project but I will describe them in case you need these modifiers in the future.

The plugin replaces the fields’ names with their values before evaluating the equations. The |n modifier tells the plugin you are referring to directly to the field’s name instead of its value.

Eg.

(function()r;
)()

The |v modifier only applies to radio buttons, checkboxes, and dropdown fields. These controls contain choices, and each choice has a text and value. The plugin uses the values of the user-selected choices from the equations. The |v modifier allows you to access the value of the information these fields will submit.

For example, if you have the radio buttons field fieldname123, and you configured it to submit the choice text, and you use fieldname123 in the equation. You would be using the value of the choice ticked by the user. But if you use the |v modifier, fieldname123|v you would use, in this case, the choice text.

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