FIrst question is, why will not field i_location work with my validation?2. Second question is, i will only validation field i_totalcost if field i_grade have value Yes selected. How will a do that. I try with If but i think a put it in the wrong place to get i t work.
Place";
}
// make sure a radio button is selected
var radioCheck = false;
for (i = 0; i < document.forms[0].i_grade.length; i++) {
if (document.forms[0].i_grade[i].checked)
radioCheck = true; }
if (!radioCheck) {
theMessage = theMessage + “\n → Incident”;
}
if (document.forms[0].i_OtherLocation.value==“”) {
Notes field that are represented as
- Another place -
SomeLocation
SomeOtherLocation
Otherwise, it will look like this:
If you aren’t using value aliases, then you need to check the .text instead of the .value of the selected option.
As for the radio button, there should always be one value checked, and you are setting the radioChecked variable to true if any of the values is checked. The for block should look like this:
for (i = 0; i < document.forms[0].i_grade.length; i++) {
var elem = document.forms[0].i_grade[i];
if (elem.checked && elem.value == “Yes”) radioCheck = true;
Subject: RE: Question re: the code in your response
Oops – that’s me and my closing-tag anal retentive disorder. Comes from typing the HTML manually in the response. There was an output URL switch (&outputformat=xhtml10 or something very similar to that) that could force the closing tags in some spots, but that just makes application design unweildy. Note that closing tags are not required in HTML on all elements; they’re only required in XHTML.
You can add a DominoCompleteDoctype line to your server’s notes.ini (=2 produces HTML 4.01 strict), but that only affects the doctype declaration line, not the HTML output.