I have a script in the Layout:ready event of the root form (form1) that checks certain sections of my PDF to make sure that all fields have content, and if so, the Submit button turns from gray to green. Likewise, if the user deletes data from a required field, the button turns from green to gray. I have used this method in several forms and it works great. This time, though, I get a big pop-up every time I open the form showing a long list of fields, and saying that all the required fields in the document "cannot be left blank". I've checked all the Form Properties, compared the script to the other documents, and everything looks good. When I disable the script the problem goes away, so the problem is either just in the script, or a combination of the script and form settings. Any help with this would be greatly appreciated.