CalcBuilder Forum

Calucaltion to be dependent on field submission

User road9media 2015-11-16 18:39:51

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

Moonsoft support 2015-11-16 20:45:07

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!
...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!