Skip to main content
CalcBuilder logo
CalcBuilder Forum

Calucaltion to be dependent on field submission

User road9media

Hi I need that a calculation not to be done unless user enter value in a specific field first. Thanks

Moonsoft support

Hi,

You could add javascript control using 'Javascript Events' at 'Executed before calculate execution' in your calculator. Write your javascript validations and in case this specific field was not entered you can 'return false;' and calculation won't be done.

Also, you can write any validation at the top of 'code' section in php, using 'exit 0;' or if sentences in case validation was not passed.

Regards,

...
CalcBuilder

Create dynamic calculators

Buy now!
...
List Manager

Build different lists for your site

Buy now!