Hi,
Thank you S.Candy and Magnus069 for helping me get my form this far.
I am having one final (I hope) issue.
I have repeating subforms in my form. The subforms have radio buttons that control the presence of of comments boxes. If the user clicks "no" then a comments box appears, if they click "yes" it disappears.
The issue I am having is when the user adds an instance of the subform (using the add button) then the send set of radio buttons controls the comments box in the first instance.
Maybe a picture will help?
Please Help!
Views
Replies
Total Likes
Can you please post your form or at least a screenshot of your form hierarchie and the script your using to show/hide the comments?
Views
Replies
Total Likes
Of Course! Anything to get this solved I have just used the action buttons to add and remove the repeating subforms. Here is the screenshot. If you need another view just let me know.
Views
Replies
Total Likes
Ok,
the problem is that you're using a SOM expression beginning at the root object for your form.
As the PDF viewer interprets every object without an explicite accessor as the first instance your script points alsways to the first instance of a repeatable object.
xfa.form.form1.Inspection.FireExtinguisherInspection... is interpreted as xfa[0].form[0].form1[0].Inspection[0].FireExtinguisherInspection[0]...
As the comments objects are located in the same level you can use a much shorter SOM expression, that is interpreted as a relative path.
UnubstrucetedComments.presence = "invisible";
Views
Replies
Total Likes
Thanks! This worked perfectly....saved me so much frustration
Views
Replies
Total Likes