Jump to content

Changing Target in Tab Control


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

Recommended Posts

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 )

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 ]

Link to comment
Share on other sites

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.











Link to comment
Share on other sites

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