PHP2005 Posted June 10, 2008 Posted June 10, 2008 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
LaRetta Posted June 13, 2008 Posted June 13, 2008 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
comment Posted June 14, 2008 Posted June 14, 2008 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
LaRetta Posted June 14, 2008 Posted June 14, 2008 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. LaRetta
comment Posted June 14, 2008 Posted June 14, 2008 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now