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

0 Likes
over 13 years ago
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);
}

Tags:

Labels:

Collateral
How To-Best Practice
Comment List
Anonymous
Related Discussions
Recommended