Jump to content

This topic is 7437 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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]

This topic is 7437 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.