Manage Learn to apply best practices and optimize your operations.

Validate Radio Buttion

I had a lot of trouble getting the radio button in a notes 5 form to validate
so I hope this saves someone a little time.
function checkFields() {

missinginfo = "";
radiostat = false;

for (var i = 0; i < document.forms[0].fieldname.length; i++){
if (document.forms[0].fieldname[i].checked){
radiostat = true;
}
}

if (radiostat == false){
missinginfo += "\n - Radio Button Name";
}

if (missinginfo != "") {
missinginfo ="_____________________________\n" +
"You failed to correctly fill in your:\n" +
missinginfo + "\n_____________________________" +
"\nPlease re-enter and submit again!";
alert(missinginfo);
}
}
document.forms[0].submit()

Dig Deeper on Domino Resources - Part 7

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close