I wish to ensure that key data fileds are populated before a user proceeds to the next tab. I have the beginings of a script that looks like the screenshot. I am using this as a trgigger script OnTabSwitch. The problem is that the script runs before the tabswitches. so after running it goes to the next tab any way.