Highlighted

Text field

_Win_Lam_

14-05-2008

Hi....



May i know the script with the following requirements?



If text has been entered into Text Field, then

fields pertaining to Age, Sex, Employment are mandatory?



Lost in the Woods....



Thanks!

Replies

Highlighted

Ruytero-HzmPcE

15-05-2008

Hi Win,



place the following script in the exit-event of your first Text Field:



if (this.rawValue != null && this.rawValue != ""){

Age.mandatory = "error";

Sex.mandatory = "error";

Employment.mandatory = "error";

}else

Age.mandatory = "disabled";

Sex.mandatory = "disabled";

Employment.mandatory = "disabled";



Regards,



RonnyR
Highlighted

_Win_Lam_

15-05-2008

Hi Ronny,

I've tried on your above method, unfortunately, it is not working...

There is nor error prompt that the script has an error, neither does it prompt when the form filler exists the text field after inputting text.

Please help me further....

Sorry for the trouble and thanks.
Highlighted

Avatar

Guest

15-05-2008

Hi,

you can use the followio javascript code:



TextField.validate.nullTest="error";



This makes field mandatory.



🙂



Roberto Bellarmino