Avatar

Level 2

Hi,

please help me with this question I have.

I have made a form in Livecycle Designer with a lot of textfields that needs to be filled. Most of those fields are mandatory. What I actually want to make is that after the user clicks a button like "Save" THEN there will be a check if all required fields are filled.

I have tried the function execValidate but I don't want to use that. Because then there will be popups at other moments, than at the save-moment.

I was thinking something like:

if (Form1.Page1.SubForm1.CustomerName.RawValue.length == 0) then
{
xfa.host.messageBox ("Please fill this field",1,0);
}

but that does not seem to work.... Please help!