Tool

RSynoradzki's picture
tool
Reads:

4442

Score:
0
0
 
Comments:

0

IDM 3.5 UserApp - Substitute "True/False" for radio control buttons

Author Info

23 April 2008 - 6:15am
Submitted by: RSynoradzki

(View Disclaimer)

license: 
free, what else

Define your form field as RadioControlButtons and call the function within the onload-event.

The call:

substTrueFalse(field,true,'disagree','agree') 

The function:

function substTrueFalse(field,defValue,falseRepl,trueRepl) {
   var myId = '_'+field.getName();
   var myElem = document.getElementsByName(myId);
   myElem[0].nextSibling.nodeValue=falseRepl;
   myElem[1].nextSibling.nodeValue=trueRepl;
   field.select(defValue);
}


Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

© 2013 Novell