June 13, 200223 yr 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
June 13, 200223 yr 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
June 13, 200223 yr 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
June 13, 200223 yr 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
June 13, 200223 yr 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
June 16, 200223 yr 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?
June 16, 200223 yr 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