Skip to main content
Participating Frequently
November 20, 2023
Answered

java script help

  • November 20, 2023
  • 1 reply
  • 2141 views

hello, is there a way to make a radio button activate/click another radiobutton/normalbutton/textfield?

iv essessinaly need to add more acts to a radiobutton iv already added 100 to mouse up and another 100 to mouse down. i a work around could be to via java script make that radio button acctivate another button or field of any sort that contains additional acts on mouse down and up. or is there any other work around the 100 act limit?

This topic has been closed for replies.
Correct answer try67

iv tried to make it a doc lvl script but that only turns out a mess. iv change the script according to the buttons and it dosent work. the code works for check boxes since you have to click it to hide it again. but on with radiobuttons you can only show them and not hide since the code dosent recognize that the button is not checked beacause its a radiobutton and you dont have to click it directly to uncheck it.

 

 is there away to make the scipt recignize that the radiobutton is nolonger checked. or is there away to make actual checkboxes act like radiobuttons? could thatwork? or could you describe how a doc lvl script whould look like at how to make them call the fields?

 

ps. i really appreciate the help


See this example file I've created. It shows how a doc-level script can be used to show/hide various fields based on the selection in a check-box group, as well as calling that same function from a button to achieve the same result. Notice the button changes the value of the check-box, but then also calls the CheckBox1_ShowFields function, to show/hide the fields based on the new value.

1 reply

Nesa Nurani
Community Expert
Community Expert
November 20, 2023

Yes, you can do that with script.

What exactly do you mean by 'activate'?

Participating Frequently
November 20, 2023

make it so when i click on a radiobutton it interacts with another button of anysort, by simulating a mouse click i guess. without actually having to click the second button physically. my end goal is to add more acts to a radiobutton since iv reached the limit on both mouse in and out.

try67
Community Expert
Community Expert
November 20, 2023

Not directly. But if you use a script (instead of the other built-in actions) then you can place the code in a doc-level function and then call that function from anywhere, which will have the same effect as interacting with the field.