Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Text field

Avatar

Avatar
Level 2
_Win_Lam_
Level 2

Likes

0 likes

Total Posts

33 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
_Win_Lam_
Level 2

Likes

0 likes

Total Posts

33 posts

Correct Reply

0 solutions
View profile
_Win_Lam_
Level 2

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

Avatar

Avatar
Validate 1
Level 3
Ruytero-HzmPcE
Level 3

Like

1 like

Total Posts

101 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 3
Ruytero-HzmPcE
Level 3

Like

1 like

Total Posts

101 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
Ruytero-HzmPcE
Level 3

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

Avatar

Avatar
Level 2
_Win_Lam_
Level 2

Likes

0 likes

Total Posts

33 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
_Win_Lam_
Level 2

Likes

0 likes

Total Posts

33 posts

Correct Reply

0 solutions
View profile
_Win_Lam_
Level 2

15-05-2008

Thanks so much! You've been great!

Avatar

Avatar
Level 2
_Win_Lam_
Level 2

Likes

0 likes

Total Posts

33 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
_Win_Lam_
Level 2

Likes

0 likes

Total Posts

33 posts

Correct Reply

0 solutions
View profile
_Win_Lam_
Level 2

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.

Avatar

Avatar
Validate 1
Level 3
Ruytero-HzmPcE
Level 3

Like

1 like

Total Posts

101 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 3
Ruytero-HzmPcE
Level 3

Like

1 like

Total Posts

101 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
Ruytero-HzmPcE
Level 3

15-05-2008

Hi Win,



email me your form

ronny.ruyters@i-da.be

Avatar

15-05-2008

Hi,

you can use the followio javascript code:



TextField.validate.nullTest="error";



This makes field mandatory.



🙂



Roberto Bellarmino

Avatar

Avatar
Validate 1
Level 3
johnqdaily
Level 3

Likes

0 likes

Total Posts

115 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 3
johnqdaily
Level 3

Likes

0 likes

Total Posts

115 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
johnqdaily
Level 3

14-07-2008

Robert,



This worked perfect for me.



Thanks for the suggestion!



John