Jump to content
Sign in to follow this  
hartmut

Can a Script be made temporarily inactive

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

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.