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

How to check whether mandaotry fields are filled in before saving?

Avatar

Avatar
Level 4
_Bill_Bain_
Level 4

Likes

0 likes

Total Posts

79 posts

Correct Reply

0 solutions
View profile

Avatar
Level 4
_Bill_Bain_
Level 4

Likes

0 likes

Total Posts

79 posts

Correct Reply

0 solutions
View profile
_Bill_Bain_
Level 4

05-12-2008

Is there a relatively easy way to check whether all the mandatory fields are filled in before saving the form? I've seen that the "Submit" button does that but I wnat to save the form, not submit it via email. Thanks!

Replies

Avatar

Avatar
Validate 1
Level 2
ChromeUser
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 2
ChromeUser
Level 2

Likes

0 likes

Total Posts

18 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
ChromeUser
Level 2

05-12-2008

Bill Bain;

You can give me a mail: acrobatman@gmail.com i will give an example.

You must have installed LiveCycle 8 to watch the real JS in example first.

Jasper

Avatar

Avatar
Boost 1
Level 4
Thomas_McConnac
Level 4

Likes

2 likes

Total Posts

134 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 4
Thomas_McConnac
Level 4

Likes

2 likes

Total Posts

134 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
Thomas_McConnac
Level 4

11-12-2008

Setup a button or however you want to trigger the check with this:



RootFormName.execValidate();

Avatar

Avatar
Validate 1
Level 4
Ryan_Lunka
Level 4

Likes

11 likes

Total Posts

143 posts

Correct Reply

11 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 4
Ryan_Lunka
Level 4

Likes

11 likes

Total Posts

143 posts

Correct Reply

11 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
Ryan_Lunka
Level 4

11-12-2008

Building on Thomas's suggestion, you could place that line of script in the pre-save event for the form. That should accomplish what you want to happen.



Good luck!



Ryan D. Lunka

Cardinal Solutions Group

rlunka@cardinalsolutions.com

Avatar

Avatar
Level 4
_Bill_Bain_
Level 4

Likes

0 likes

Total Posts

79 posts

Correct Reply

0 solutions
View profile

Avatar
Level 4
_Bill_Bain_
Level 4

Likes

0 likes

Total Posts

79 posts

Correct Reply

0 solutions
View profile
_Bill_Bain_
Level 4

12-12-2008

Works like a charm -- thanks. I put it on the MouseEnter event of the button so that it fires before the user even has the chance to trigger the save. That way the user could save what they've got and come back later and complete it (assuming that the form has the Reader extensions added).