Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Hi Everyone,

I am new using the filemaker script/calculation, I don’t know to validade a field if someone click at the “CustomerNumber” field a message box should show up and asking “Are you sure you want to make changes at this record?” If they click “OK” it is allow to make change at that field and if they click “No” changes are not allowed.

Any help will be appreciated and thank you in advance.

Sandy

Posted

Hi Sandy,

From layout mode, select Layouts > Layout Setup and uncheck 'Save record changes automatically.'

I believe that's what you are asking. If not then we will need more information.

LaRetta

Posted

You could define the field as a button that runs a script like:

Show Custom Dialog [ Message: "Are you sure..."; Buttons: “OK”, “Cancel” ]

If [ Get (LastMessageChoice) = 1 ]

Go to Field [ Yourfield ]

End If

Posted

Hi Sandy,

You will also want to remove that field from the tab order (if you haven't already). Otherwise someone could tab to it, bypass the script and change it freely. :smile2:

LaRetta

Posted

That's a good point, which I took for granted - thanks for adding that. I usually make the field non-enterable in Browse mode, which also makes it skip its tab order. You could also add the button itself to the tab order, so you can tab into it and fire the script by pressing Return.

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