Jump to content

This topic is 8267 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

Posted

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

Posted

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

  • Newbies
Posted

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?

Posted

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.

This topic is 8267 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 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.