making context sensitive buttons (dis)appear
Is there any way to make buttons (or pop-up menus) appear/disappear? I'd like the button to be both not-visible and not highlighted if the user clicks in that area when the button is not in context. For example, in my db I have a table of events. If an event includes a "charge" I would like a "pay" button to appear. The pay button's script would create another event that shows the charge is paid. When the event is not a charge I would prefer that the user cant see the button and that it doesnt show any field frame if the user clicks in the button area.