This topic is locked
[SOLVED]

 Java Script - Mandatory Fields

5/27/2012 10:51:35 AM
PHPRunner General questions
T
Tempus_Erus author

Hi,
I have a fields that are displayed as the result of a "yes" or "no" drop down box.
There are several connatations. My slight problem is making all fields mandatory.........
Users through their choice will of course only complete fields based throuogh their selection process.
That leaves those fields, not completed (rightly so) still mandatory, thefore the form will not submit.....simply as these fields are not displayed as they are not required to be completed.
I assume I need to run a validation script "on submit" on each field based on the previous entry.... if so can anyone advise where this function would need to be placed and how to call it - unless there is an easier answer?
Thanks,

C
cgphp 5/29/2012

Check the addValidation rule of the Javascript API: http://xlinesoft.com/phprunner/docs/ctrl_addvalidation.htm

T
Tempus_Erus author 6/2/2012

Yep that will do it!
Thanks Cristian.