Jump to content
Server Maintenance This Week. ×

Hiding buttons


dulux

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

Recommended Posts

Hi all,

I have a button that performs a script that can only be run once per record. Is there a way of reading a field in the table that stores whether the script has been run and then hiding the button so that it cannot be run again?

many thanks

Rich

Link to comment
Share on other sites

You will need to set a field with a flag indicating that it has been run for it. I would just set it with the record's Primary Key so it will be easier for you when you create the self join using this technique.

Visibility

Link to comment
Share on other sites

You might achieve a similar effect by dimming the button's text (assuming it's a text button and not a graphic) using conditional formatting.

The button's script can throw a dialog and exit if the flag field has been set.

Link to comment
Share on other sites

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