September 16, 200421 yr Another problem with the events booking system: I created two fields, 'password' and 'passwordconfirm' I set both fields to require a value and I set the validation of 'passwordconfirm' in FileMaker with a calculation: passwordconfirm = password but that doesn't seem to work, the system allows different passwords to be entered - do I need to select 'Validate only if field has been modified' in the calculation if FileMaker or have a validation calculation on both fields??? Thanks
September 21, 200421 yr Howdy! I'd suggest using JavaScript for password confirmation instead of using FM. JS can check the form before it's submitted whereas FM can only check after it's a done deal. Here's what I've used, just be careful about making changes if you don't know JS. I think I customized it for you already, but you still may have to tweak it if you have other stuff going on your page, too. Put the <head> stuff in the header section and the <body> stuff in the body section... <head> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- function checkPassword(form) { pass1 = form.password.value; pass2 = form.passwordconfirm.value; if (pass1 != pass2) { alert ("The passwords do not match. Please type them both again.") return false; } else return true; } //--> </SCRIPT> </head> <body> <form name="form" action="yourformatpage.html" method="POST" onsubmit="return checkPassword(this)"> <input type="password" name="password" size="12"> <input type="password" name="passwordconfirm" size="12"> <input type="submit" name="submit" value="submit"> </body> [EDIT: ooops... you'll have to change the submit and format/submit page at least. Hope this gets you goin', though. --ST]
Create an account or sign in to comment