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

Recommended Posts

  • Newbies
Posted

I am trying to write an IF/THEN statement than presents a dialogue box if the name field is blank. If it has a name is in the field, continue.

 

Posted (edited)

I assume you are asking in the context of a script, since showing a custom dialog is a script step (you posted this in the Conditional Formatting section which is irrelevant to the problem).

I also assume that the purpose of the custom dialog is to allow the user to add the missing name and not allow them to continue until they do. For this, you would do something like:

Loop
   Exit Loop If [ not IsEmpty ( YourTable::Namefield ) ]
   Beep
   Show Custom Dialog [ "A name is required." ; YourTable::Namefield ]
End Loop
# the rest of the script

You could make this more elaborate by giving them the choice to enter the name and continue or to abort.

 

Edited by comment

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.