ibiubu Posted June 13, 2002 Posted June 13, 2002 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
RussBaker Posted June 13, 2002 Posted June 13, 2002 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
ibiubu Posted June 13, 2002 Author Posted June 13, 2002 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
RussBaker Posted June 13, 2002 Posted June 13, 2002 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
ibiubu Posted June 13, 2002 Author Posted June 13, 2002 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 lscott Posted June 16, 2002 Newbies Posted June 16, 2002 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?
RussBaker Posted June 16, 2002 Posted June 16, 2002 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.
Recommended Posts
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