rjusa
11-02-2003, 12:43 PM
What I have is a form with a parent/child relationship. If you answer "yes" child opens and you input the required fields. If you click Submit the required field checker takes over and verifies input...so far so good. If you then click Update, the values are passed from child back to parent...also cool. I'd rather not have the user click 2 seperate buttons.
The abbreviated code to update parent is:
function updateParent() {
opener.document.parentForm.CndnSBFirstName.value = document.childForm1.cf1b.value;
self.close();
return false;
The required field checker has a template called $error$...so if I miss as in the example above CndnFBFirstName, $error$ is equal to "First Name Required." I thought somehow if I could tell the program that the value of $error$ = "", then run updateParent but I'm stuck. Any suggestions?
Thanks,
Ron
The abbreviated code to update parent is:
function updateParent() {
opener.document.parentForm.CndnSBFirstName.value = document.childForm1.cf1b.value;
self.close();
return false;
The required field checker has a template called $error$...so if I miss as in the example above CndnFBFirstName, $error$ is equal to "First Name Required." I thought somehow if I could tell the program that the value of $error$ = "", then run updateParent but I'm stuck. Any suggestions?
Thanks,
Ron