The program goes to the appropriate sections, but the presence event does not work? Where am I going wrong? I also have tried to set the property to invisible in the workspace and then just turn it on through scripting. That approach is not working either.
form1::initialize - (JavaScript, client)
//xfa.host.messageBox is used to determine if this section is being processed.
xfa.host.messageBox("We are initializing");
//The intent is to make these parts of the form invisible. The first is a subform, the second a text field.
form1.sfPage1.sfPresidency.presence = "invisible";
form1.sfPage1.sfProposedCalling.TextField1.presence = "hidden";
//In neither case does the presence of the object go invisible or hidden.
form1.sfPage1.sfProposedCalling.Organization::change - (JavaScript, client)
switch(xfa.event.newText){
case "EQ":
// A message is to appear to show that the program has reached this section.
// It does reach this section.
xfa.host.messageBox("This is the EQ subForm");
form1.sfPage1.sfPresidency.presence = "visible";
form1.sfPage1.sfProposedCalling.TextField1.presence = "visible";
// The appropriate messages show up, but neither of the presence events work.
break;
default:
xfa.host.messageBox("Default");
break;
}
Solved! Go to Solution.
Views
Replies
Total Likes
Have you saved the form as a dynamic PDF?
Views
Replies
Total Likes
Have you saved the form as a dynamic PDF?
Views
Replies
Total Likes
Steve,
Thank you for bringing me back to the basics. I don't know why I missed
such a simple thing, but I did. Things work fine now.
Allen Oyler
President
Onsite HR Services, Inc.
Phone: 503.680.7444
Email: allen@onsite-hr.com
Views
Replies
Total Likes
You are not alone. I have pulled many hairs from my receding hairline more than once on this same issue.
Views
Replies
Total Likes