Radio button not behaving as expected-Hidden, Visible

13 views
Skip to first unread message

Raffe

unread,
Oct 31, 2022, 9:41:00 AM10/31/22
to Adobe LiveCycle Developers
Hi all,

Looking for some help with a misbehaving radio button.
Got a basic form with 3 radio buttons.
RB1 executes actions as expected.
Radion button (RB2) has 3 choices, and the problem child is the 3rd option (NA) which is supposed to show the hidden (RB3) 3rd radio button (visible, hidden function).
It works for the associated Text Heading (TH3), but the radio button (RB3) is a no-show.

Been at this for a while now, and I suppose it's something simple, but I can seem to figger it out.
NCR.pdf

mhw

unread,
Nov 1, 2022, 11:12:57 AM11/1/22
to Adobe LiveCycle Developers
I also could not figure why it didn't work.
I slightly modified the file's structure and it seems to be working now.

NCR.pdf

Kimberley Denson

unread,
Nov 1, 2022, 12:43:52 PM11/1/22
to live...@googlegroups.com
You could try the following:

Call your subform something
Then resolve the nodes
Then change from click to change events
I added else statement for the end to bring you back to your defaults.

Worth playing with anyway.




--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to livecycle+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/livecycle/b77a7a5f-dce5-46e4-adba-9b90cb37347en%40googlegroups.com.


--
Kimberley M Denson
e-Forms & Web Application Development
Harris Grant Consulting
Phone:   561-855-4312
email: kimberle...@harrisgrantconsulting.com
NCR1.pdf

fred.pantalone

unread,
Nov 1, 2022, 4:32:33 PM11/1/22
to Adobe LiveCycle Developers
I found the same as MH. Fix up the layout and it will work. I'm not sure why it wasn't working with your layout!

Tips:
-give the subform that contains RB3 a name, e.g. subR3
-move the caption text object into that subform
-change all scripting references from RB3 and TH3 to subRB3

In essence, show and hide the subRB3 subform and not the individual fields. I recommend doing this in the rest of the form as well. You've got a lot more script than you need. 

Also, I recommend moving scripts from individual radio buttons to the radio button group itself and then use if/else instead of 3 separate ifs.

Raffe Stone

unread,
Nov 3, 2022, 3:27:53 AM11/3/22
to live...@googlegroups.com
Thanks to all for the input.Will follow the advice put forward.
Much appreciated.

Reply all
Reply to author
Forward
0 new messages