Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

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.

  • Author

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?

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).

In other words, is there an "onBlur" function in FM?

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.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.