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

Layout:ready script is causing weird validation problem

Avatar

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct Reply

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

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct Reply

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

28-09-2015

Hello,

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.


if ((Page1.execValidate() == true) && (Page2.execValidate() == true) && (Page3.Section1.execValidate() == true))


  {


  Presenter_Submit_Dummy.fillColor = "0,128,0"; //green fill


  Presenter_Submit_Dummy.caption.font.fill.color.value = "255,255,255"; //white font


  }


  else


  {


  Presenter_Submit_Dummy.fillColor = "240,240,240"; //light gray fill


  Presenter_Submit_Dummy.caption.font.fill.color.value = "150,150,150"; //gray font


  }





Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct Reply

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

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct Reply

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

21-10-2015

Help.....

Avatar

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct Reply

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

Avatar
Validate 10
Level 3
Geckoz100
Level 3

Likes

20 likes

Total Posts

143 posts

Correct Reply

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

05-10-2015

Anyone?......