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

Avatar

Avatar

_Bill_Bain_

Avatar

_Bill_Bain_

_Bill_Bain_

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

ChromeUser

Avatar

ChromeUser

ChromeUser

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

Thomas_McConnac

Avatar

Thomas_McConnac

Thomas_McConnac

11-12-2008

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



RootFormName.execValidate();

Avatar

Avatar

Ryan_Lunka

Avatar

Ryan_Lunka

Ryan_Lunka

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

_Bill_Bain_

Avatar

_Bill_Bain_

_Bill_Bain_

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).