Conditionally deactivate popup?
I have a screen with a popup and depending on which record is currently active in a table, I would like to selectively deactivate it, i.e. I don't want the user to make any choices. Is there a way to do this?
If there isn't, my second choice would be to find some way to substitute a different value list for the popup, again depending on which record is currently active. Is there a way to do this?
Right now, I'm stuck with what I consider to be the least desirable choice which is an error trap with a warning message. Since the popup is active and the user can make a choice, if they make any choice from the list, a warning message pops up and when the OK button on the warning message is clicked, then the field attached to the popup is reset to a fixed value.
This is because popups don't seem to respond to "On Object Enter" script triggers - I'm stuck with the On Object Modify trigger, so rather than preventing the action in the first place, I'm stuck with fixing it after the fact.