Tool
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.
Related Articles
- Adding UserApp Buttons, with Form Scripts or HTML
- HowTo: Use Radio Buttons in User Application (Turn on your CB Radio)
- Multiple LDAP Values in a NAM Form Field
- HowTo: Validate Form Input and Disable Submit in User Application Forms
- User Application Approval Forms with Dynamically Generated MV CheckboxPicklists or Text Picklists
User Comments
- Be the first to comment! To leave a comment you need to Login or Register
- 4439 reads


0