Paul Webb Posted June 21, 2013 Posted June 21, 2013 I have two fields: Closed Date & HW Platform. Goal: If the user selects the HW Platform field and Closed Date is empty pop a custom dialog. If Closed Date is not empty then no message. I have tried a few ways to use field validation to perform the check and post a message but no luck so far. I know I could do this easily with a Script Trigger. My question is can this be done with validation? And is one or the other method better? Validation or ST? FileMaker 12 FileMaker Server Adv 12
Raybaudi Posted June 21, 2013 Posted June 21, 2013 What do you mean by: "If the user selects the HW Platform field" ? The user makes a selection from a value list or simply enters the field ?
Paul Webb Posted June 22, 2013 Author Posted June 22, 2013 If the user clicks in the field as though they are going to make an edit.
Brooks Posted June 22, 2013 Posted June 22, 2013 Script trigger was made for these situations. Why try to work around the obvious solution?
Paul Webb Posted June 22, 2013 Author Posted June 22, 2013 Script trigger was made for these situations. Why try to work around the obvious solution? Because I'm still new at this and sometimes what appears to be the obivious is not always the best way.
Brooks Posted June 22, 2013 Posted June 22, 2013 Use the onobjectenter script trigger. Use a set variable $test [ field to check ] If isEmpty ( $test ) Show custom dialog Inform user of correct steps Commit records or go to field Exit script End if
Wim Decorte Posted June 22, 2013 Posted June 22, 2013 Validations will fire everywhere the field is touched, script triggers only fire on the layout where you define them. Validations do not give you the workflow control that you are after.
Recommended Posts
This topic is 4444 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