Novell Home

Welcome to Cool Solutions

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

Submitted By RSynoradzki on Wed. 04.23.2008
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);
}

0

 
 

Novell® Making IT Work As One

© 2008 Novell, Inc. All Rights Reserved.