Custom dependencies | WordPress.org

[ad_1]

Currently, the only conditions available are to show fields. Is there a way to create a custom calculation based on a value? For instance, I am creating a pricing calculator. I would like to create a field that has a different calculation based on another field. So, if the user has less than 100 employees, the formula would be employees * X. If they have between 200-350 employees, the calculation would be employees * Y. If they have between 350-500 employees, the calculation would be employees * z.

I have gotten around this by creating a field for each price point and another field for each calculation. Then I have a dynamic field that uses dependencies to only shows the fields based on the number of users. However, this requires a lot of fields, and it makes it impossible to sum up multiple fields. For instance, a base price, plus the cost of employees.

The page I need help with: [log in to see the link]

 

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