These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Error: Invalid enumerated value: 0

rpeterson
Registered: Oct 7 2008
Posts: 72

Here is what I have:

if(CheckBox1 == "1") then
form1.Main_Subform.subform.CommentsSubform.AlternateText.presence = "invisible" & form1.Main_Subform.subform.CommentsSubform.DefaultComment.presence == "visible"
elseif(CheckBox1 == "0") then
form1.Main_Subform.subform.CommentsSubform.AlternateText.presence = "visible" & form1.Main_Subform.subform.CommentsSubform.DefaultComment.presence == "invisible"
endif

AlternateText and DefaultComment occupy the same location on my form. AlternateText (text field) is set as Visible and DefaultComment (static text) is set as Invisible.

I also tried using a messageBox and got the same error message. I am obviously a self-taught LC user. I am using LC Designer 8.0 I have also looked high and low for reference material that would give me the basic-basic scripting info I need. Does anyone have any suggestions regarding either of my dilemmas? (script above and reference material)

Any help at all would be greatly appreciated. rpeterson

rpeterson

My Product Information:
LiveCycle Designer, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Try the value of zero and not the character string of zero, "0".

George Kaiser

rpeterson
Registered: Oct 7 2008
Posts: 72
I started with the zero and one as numbers (without quotes), and after getting your reply, tried removing the quotes from the 0. That did not work. I also tried capitalizing Invisible and Visible. That also did not work. If it helps, I am using FormCalc. Any other suggestions?

Thanks for everything. rpeterson

rpeterson