Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Validation Message - Minus the OK Bautton


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

Recommended Posts

Posted

I have a strict validation set up a that tells the user he cannot change that field. However, the Validation message comes up wiht two buttons - 'Revert Field' and 'OK'. 'OK' does nothing and only the 'Revert Field' should be visible and selectable. Is there any way to get rid of the 'OK' button?

Thanks so much and have a great day!

Posted

OK does do something: it returns the user to the field and allows them to change the value to something else.

There is no way to modify the dialog. However the new onValidate script trigger in FMP 12 lets you create a custom dialog that gets displayed before the native dialog.

Posted

If the field cannot be modified then why not restrict the access to the field instead?

Personally I don't use validation on fields - always by script!

Posted

Nice thinking. Script trigger on Validate;

Undo

Commit Records

Works nicely.

BTW, field access is necessary for drop down list in order to navigate through layouts, but text inside field (From Value list) cannot be modified as that points the script to the right layout via LAyout by calculation.

Thanks again.

This topic is 4587 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.