June 21, 201312 yr 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
June 21, 201312 yr 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 ?
June 22, 201312 yr Script trigger was made for these situations. Why try to work around the obvious solution?
June 22, 201312 yr Author 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.
June 22, 201312 yr 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
June 22, 201312 yr 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.
Create an account or sign in to comment