Jump to content

Can a Script be made temporarily inactive


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

Recommended Posts

I have a bunch of buttons that are on a layout - but there are certain conditions ( one of the buttons) that I would need the user not to be able to activate the other buttons when one button is pressed. In other words if script 4 is activated by this buttons I would like to know if script 3, 5, 6, and 7 could somehow be rendered inactive temporarily.

thanks

Dave

Link to comment
Share on other sites

If I understand your question correctly, you could store a global field or variable with the last script parameter. You can add this to the end of your scripts. Then in the beginning of your scripts for 3, 5, 6, and 7 you can check to see what the last variable was. If it wasnt script 4 then do the actions.

Link to comment
Share on other sites

Another option is the visibility trick, that simply removes the buttons from the layout conditionally:

http://www.databasepros.com/FMPro?-DB=resources.fp5&-lay=cgi&-format=list.html&-FIND=+&resource_id=DBPros000743

--sd

Link to comment
Share on other sites

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