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.

If checkbox is selected a pop-up message is shown?

Featured Replies

I have a field that is used as a check box. I want it so that anytime the user either checks or unchecks the box a pop-up message window appears with a text warning. Any thoughts as to the best way to do this?

LR

Assuming your check box stores a Yes/No option, create a scripted button to overlay the check box, with a script like:

If(CheckBox="Yes")

. SetField[CheckBox,"No"]

. Show Message [one type of message]

. Exit Script

Else

. SetField[CheckBox,"Yes"]

. Show Message [another type of message]

End If

  • Author

Kind of makes sense. Instead of using "Yes" and "No" I have a check box that uses a value list with only one item in it..."Completed."

So this is what seemed to work...

If(CheckBox="Completed")

. SetField[CheckBox,"No"]

. Show Message [one type of message]

. Exit Script

Else

. SetField[CheckBox,"Completed"]

. Show Message [another type of message]

End If

LR

OK, so now it would look like...

If(CheckBox="Completed")

. SetField[CheckBox,""]

. Show Message [one type of message]

. Exit Script

Else

. SetField[CheckBox,"Completed"]

. Show Message [another type of message]

End If

  • Author

Thanks Russ. I did get it to work. Look at the code above your last post.

Thanks again. A bit of a tricky script there.

LR

  • Newbies

Russ,

How do you overlay the scripted button and still allow the check box to be workable, i.e. 4 choices but show message if only 1 particular choice is chosen?

Larry,

For more than 2 options in the check box its gets a bit "un-elegant"... The check box is visible but everything is done through transparent scripted buttons which sit on top of each little square in the check box area.

Each button would then have a script which sets the check box field to the required text or value, and then displays the message. Once the value has been set, the box will have the "X" in it.

A disadvantage of doing it this way is that you need a separate layout, without the transparent buttons, to use for Finds - so that the real check box can be entered by the user.

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.