Creek Posted May 17, 2012 Posted May 17, 2012 I have Tab Control with two tabs (Tab1 and Tab2). I set script trigger (OnTabSwitch). This script checks whether the user can change the tabs. How to prevent user from switching a tab. ( I have FMA12 )
Quartekoen Posted May 17, 2012 Posted May 17, 2012 Edit your layout and select each tab in the control. In the Inspector, give each tab a unique name. Then, in your script, use the Go To Object step to send them back to the first tab if they don't have access to the tab they clicked on.
mr_vodka Posted May 17, 2012 Posted May 17, 2012 I have Tab Control with two tabs (Tab1 and Tab2). I set script trigger (OnTabSwitch). This script checks whether the user can change the tabs. How to prevent user from switching a tab. ( I have FMA12 ) If the test fails and you dont want them to be able to switch the tab then use Exit script [ 0 ]
Lee Smith Posted May 17, 2012 Posted May 17, 2012 There are 2 videos that provide tips on how to use script OnTabSwitch that if you haven't watched yet might be helpful to you. Unfortunately, I can't seem to paste the link without the video media showing as ready to play. Therefore, I have pasted them as code in hopes that it won't post as videos.
Creek Posted May 18, 2012 Author Posted May 18, 2012 Thank you for your quick reply. Great materials.
Recommended Posts
This topic is 4641 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 accountSign in
Already have an account? Sign in here.
Sign In Now