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

Form / Field Validation on a button...?

Avatar

Avatar
Validate 1
Level 1
ellis355
Level 1

Likes

2 likes

Total Posts

62 posts

Correct Reply

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

Avatar
Validate 1
Level 1
ellis355
Level 1

Likes

2 likes

Total Posts

62 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Applaud 5
Affirm 1
View profile
ellis355
Level 1

29-02-2016

Hi

I have a form where I want to replace the Submit Button with a regular button to take better control of the created email title and body etc. I think I can achieve this using knowledge from previous threads on here however I am struggling to find the code to make my validation work.

Is there a JS command to invoke the form based validation and check for null on all the fields I have set to 'User Required'?

Thanks

Ellis

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,077 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile

Avatar
Springboard
MVP
Magus069
MVP

Likes

143 likes

Total Posts

1,077 posts

Correct Reply

155 solutions
Top badges earned
Springboard
Validate 1
Ignite 3
Ignite 1
Establish
View profile
Magus069
MVP

29-02-2016

Hi there,

if you have set all the required fields to User Required, you should be using xfa.form.execValidate(); to validate all required fields.

Hope this will help ya!

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 1
ellis355
Level 1

Likes

2 likes

Total Posts

62 posts

Correct Reply

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

Avatar
Validate 1
Level 1
ellis355
Level 1

Likes

2 likes

Total Posts

62 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Applaud 5
Affirm 1
View profile
ellis355
Level 1

29-02-2016

Hi – many thanks ☺