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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

JdL
Community profile JdL Level 2
Job title here
Location here
6 BADGES
Level 2

Level 2

Learn more
Joined the community 12-12-2012 6:25:05 AM
Offline
Top badges earned by JdL
Customize the badges you want to showcase on your profile
Radio buttons breaking validation
Avatar
Give Back 5
Level 2
JdL
Level 2

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 3
Ignite 1
View profile
JdL
- Adobe LiveCycle
Hi all,I have a major problem with a form in that, bizarrely, radio buttons are breaking the validation of mandatory fields throughout the form.On trying everything to narrow down what the issue is, strangely this seems to be it. For example, mandatory fields validate up until the first instance of a radio button in the form, where all other successive mandatory fields fail to validate after it. Simply moving a working field to after that first instance of a radio button in the hierarchy breaks ...

Views

1.0K

Likes

0

Replies

1
Re: Targeting multiple subforms with a shared name throughout a form
Avatar
Give Back 5
Level 2
JdL
Level 2

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 3
Ignite 1
View profile
JdL
- Adobe LiveCycle
Hi Jono,Genius, thanks for that. Works a treat as am able to target fields as opposed to the subform.My only wonder is how to target the fillable area of the fields only - the current technique means that the overall background colour is changed as opposed to just the fillable area.I've been trying to find an answer but it seems it may be a little tricky. Have been playing around with the code above and an old validation script (which used oUITypeNode.border.fill.color.value to target the fields...

Views

62

Likes

0

Replies

0
Re: Targeting multiple subforms with a shared name throughout a form
Avatar
Give Back 5
Level 2
JdL
Level 2

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 3
Ignite 1
View profile
JdL
- Adobe LiveCycle
That'll be great, thanks Jono

Views

62

Likes

0

Replies

0
Re: Targeting multiple subforms with a shared name throughout a form
Avatar
Give Back 5
Level 2
JdL
Level 2

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 3
Ignite 1
View profile
JdL
- Adobe LiveCycle
That's a very good suggestion - I haven't really got into nested functions before.Would calling the nested function work alongside the elements of the script that target the subforms first (such as access= "protected" to lock them down)?What would your thoughts be on how to target all field types (such as text fields, date fields, radio buttons, check boxes, etc.) in a nested function?Cheers for your help.

Views

62

Likes

0

Replies

0
Targeting all objects in multiple subforms with a shared name throughout a form
Avatar
Give Back 5
Level 2
JdL
Level 2

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 3
Ignite 1
View profile
JdL
- Adobe LiveCycle
HiJono Moore was able to find an excellent solution from an original by Radzmar for targeting subforms throughout a form that share a name:function hideSubs(vNode) { if (vNode.className === "subform") { //name of subform you're targeting if (vNode.name === "targetSub") { vNode.presence = "hidden"; } } for (var i = 0; i < vNode.nodes.length; i += 1) { hideSubs(vNode.nodes.item(i)); }} hideSubs(xfa.form);Has anyone any thoughts on how to extend this functionality to select the object within those ...

Views

635

Likes

0

Replies

2
Re: Targeting multiple subforms with a shared name throughout a form
Avatar
Give Back 5
Level 2
JdL
Level 2

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 3
Ignite 1
View profile
JdL
- Adobe LiveCycle
Hi JonoGood call - it seems like quite a flexible method.What I'm trying to do at the moment though is to rehash the script to (1) find all subforms with the shared name (as above) and then to (2) select all fields inside those subforms only (all types: text fields, radio buttons, check boxes, etc.).I'll then lock them down and apply a colour change as a visual cue.I have to admit it's got me stumped! Any thoughts?Thanks

Views

63

Likes

0

Replies

0
Re: Targeting multiple subforms with a shared name throughout a form
Avatar
Give Back 5
Level 2
JdL
Level 2

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 3
Ignite 1
View profile
JdL
- Adobe LiveCycle
Jono that's genius. Just had a chance to embed it into the form and works a treat. (Thanks to Radzmar too.)Now here's another related thought that has me scratching my head: is there a way to use this as a basis to target all text fields/check boxes/radio buttons inside those subforms? So for instance to use something like fillColor to change the colour of these to grey.This would be an alternative to hiding the content of the subforms - to have them visible but have a visual cue to signal that ...

Views

63

Likes

0

Replies

0
Re: Targeting multiple subforms with a shared name throughout a form
Avatar
Give Back 5
Level 2
JdL
Level 2

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 3
Ignite 1
View profile
JdL
- Adobe LiveCycle
Hi JonoThanks for your thoughts, that's helpful.You're latter comment applies in this case - the nature of the form requires that these subforms that need to be hidden/disabled are in various locations. I'm hoping to find a way to hit all of these at once by targeting the name that they have in common. The loop/accessing the subform names has well and truely got me stumped!Has anyone any thoughts on this?Thanks

Views

63

Likes

0

Replies

0
Targeting multiple subforms with a shared name throughout a form
Avatar
Give Back 5
Level 2
JdL
Level 2

Likes

0 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 3
Ignite 1
View profile
JdL
- Adobe LiveCycle
HiI've found a few hints at this online, but to date with little detail as to successful methods.Has anyone had any success with targeting subforms that have the same name throughout a form? The intention is to hide or disable the contents of those subforms by using a script.These subforms are numerous and at various locations throughout the form, so I'm trying to find a way to use the common name to target all of these at once, as opposed to specifying absolute locations for all of these subfor...

Views

2.7K

Likes

0

Replies

13