skir
01-23-2006, 12:27 PM
I have the following code:
function checkForm(ACH) {
form = document.ACH
if (form.new_customer.value != "yes") {
var response = confirm ("To save typing in the future, do you wish to save\n this customer's account information?")
//alert (response)
if (response==true){
form.save_cdb.value="yes";
}
}
The hidden field is simply <input type="hidden" name="save" value="">
It only works if I change the field 'save_cdb' to a regular text field. I need it hidden though. I can access the hidden field by hardcoding a value and then doing an alert on it, but cannot set a value for this field.
function checkForm(ACH) {
form = document.ACH
if (form.new_customer.value != "yes") {
var response = confirm ("To save typing in the future, do you wish to save\n this customer's account information?")
//alert (response)
if (response==true){
form.save_cdb.value="yes";
}
}
The hidden field is simply <input type="hidden" name="save" value="">
It only works if I change the field 'save_cdb' to a regular text field. I need it hidden though. I can access the hidden field by hardcoding a value and then doing an alert on it, but cannot set a value for this field.