Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

validation calculation for password fields

Featured Replies

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

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

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.