jessicanacac Posted October 14, 2003 Posted October 14, 2003 I want to display a custom message box with custom buttons if one field in my database is not filled in. I'm having trouble setting this up. Can anyone assist me? Thank you
ernst Posted October 14, 2003 Posted October 14, 2003 Using field validation with a custom message is the easiest way to achieve this. It does not give you the custom buttons though. If you do not like this, you can make a separate entry layout and a script that does something like: Goto Layout [your entry layout] Loop Pause If [isEmpty[Field1] or isEmpty[Field2] or ......] Show Dialog [Your text, your buttonnames] else Exit Loop if [1=1] end if End Loop Goto Layout [original layout] Hope I interpreted your question right... Ernst.
jessicanacac Posted October 20, 2003 Author Posted October 20, 2003 Do you mean a seperate entry layout for that one field? I'm confused. The first box on the entry layout is the box I want to make sure is filled in. I'm wondering if they tab out of that box without entering any data can I display a custom message with custom buttons?
chemparrot Posted October 20, 2003 Posted October 20, 2003 Check out the thread on validating entries in a second field in this same forum - this thread probably addresses your question (it looks as if they are asking to do the same thing you are asking above).
DonH Posted October 20, 2003 Posted October 20, 2003 In other words, is there an "onBlur" function in FM?
ernst Posted October 20, 2003 Posted October 20, 2003 If it is as simple as having one field that MUST be filled in before continuing then you can use field validation. Go into the field definitions for the field in question, click the 'Validation' tab, check 'Not Empty' and -'Display custom message if validation fails' and type in a custom message. You can not edit the buttontext when using this built-in validation, nor can you have a dynamic message text. Hope this helps, Ernst.
Anatoli Posted October 20, 2003 Posted October 20, 2003 You may also check very powerful Simple Dialog from http://www.24usoftware.com
Recommended Posts
This topic is 7774 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