My checkbox is called CrossStreet. If it's checked, I'm going to plug in some unrelated data into the [address] field. The script coding is in the footer section of the WebForm datapage. (The address field is hidden and is blank)
Many, many thanks for any ideas on what I'm doing wrong. Something simple, I hope :-)
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
richarde
Hi,
Upon submit of a WebForm datapage, I want to generate new text for a record depending on whether or not a checkbox on the Webform is checked.
Something like this, I think:
function intersection()
{
if(document.forms[0].CrossStreet.checked){
document.forms[0].InsertRecordaddress.value==\"help\";
} else {
document.forms[0].InsertRecordaddress.value==\"me\";
}
}
document.forms[0].onsubmit=intersection;
My checkbox is called CrossStreet. If it's checked, I'm going to plug in some unrelated data into the [address] field. The script coding is in the footer section of the WebForm datapage. (The address field is hidden and is blank)
Many, many thanks for any ideas on what I'm doing wrong. Something simple, I hope :-)
Richard
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.