Expand my Community achievements bar.

If Radio button checked then jump to text field - HELP

Avatar

Former Community Member
I have two radio buttons - yes/no..when yes is selected i want it to automatic jump to the comment text field. Please help! with syntax.



I have search the forum high and low and can't find the answer.
3 Replies

Avatar

Former Community Member
On the "yes" radio button insert the following script under the click or mouse-up event:



var comments = xfa.resolveNode("commentsField");

xfa.host.setFocus(comments)



Hope this helps,



Chris

Avatar

Former Community Member
Chris, thanks but it didn't work. The radio buttons and text field are in subforms. I tried both click and mouse-up on the yes button (see below) but it didn't automatic jump to the text field....



var comments = xfa.resolveNode("form1.page1subformflow.middlesubform.otherexplan");

xfa.host.setFocus(comments);



please help!

Avatar

Former Community Member
Chris, that's ok..I figured it out...thanks



don't setup as a var.