Script help needed: Inactivate button based on button's text color
I'm working with FMPro 11.0v3 on a Win7Pro operating system.
By searching the forum, I found how to "gray out" the button's text color using a conditional format based on a the forumula Get ( RecordOpenState ). Since we have people that just like to click on things anyways, I would like to also de-activate a button based on the button's text color.
Would someone be able to assist with the script I need to write for this to happen? I'm thinking it might include GetLayoutObjectAttribute, but I am not familiar with how to use this.
Thank you =)
Use the same kind of test in an If Step and put the rest of your button's script inside it. Since a true result is changing your button color, use Not to reverse the value in the IF step since you want to allow the script to function if it's not true:
If [ Not Get (RecordOpenState) ]
#Put rest of script here