How do I write an if statement that when true, runs two actions?
if (NumericField1.rawValue > 0)
{
xfa.resolveNode("#pageSet.Page1.Image1").presence = "visible" + Rectangle1.presence = "visible";
}
Solved! Go to Solution.
Views
Replies
Total Likes
Well, the problem is you're trying to control objects on the body page and a masterpage at once.
This is generally not so simple to accomplish.
I changed your form a bit.
The paperclip image and the numeric field now monitor the valur of the numeric field and change the wanted property if the value is larger than 0.
Script for the paperclip (wrapped in a subform)
Script for the numeric field
Script for the remove button
Views
Replies
Total Likes
Generally all actions should be written in a separate code line:
if (NumericField1.rawValue > 0) {
xfa.resolveNode("Image1").presence = "visible";
xfa.resolveNode("Rectangle1").presence = "visible";
}
Views
Replies
Total Likes
Still does not work. I must be doing something wrong. Form is linked below...
Views
Replies
Total Likes
Try
Views
Replies
Total Likes
Two things are supposed to happen whe nthere are more than one or more attachments.
The yellow rectangle becomes visible and the "paperclip" appears at the top of the form (on master page).
Views
Replies
Total Likes
Well, the problem is you're trying to control objects on the body page and a masterpage at once.
This is generally not so simple to accomplish.
I changed your form a bit.
The paperclip image and the numeric field now monitor the valur of the numeric field and change the wanted property if the value is larger than 0.
Script for the paperclip (wrapped in a subform)
Script for the numeric field
Script for the remove button
Views
Replies
Total Likes
radzmar:
Now that I see the correct answer I know I never would have figured this out. Your form works great! This is why I was trying to close the pane that contains the paperclip so users would only use this interface. Thank you so much for all your help with this. I really appreciate your time and sharing your expertise.
Have a great day!
-Don
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies