Copy link to clipboard
Copied
I have a three 3 way checkbox with blank, cross and tick.
Is there a way of omitting the blank state?
Copy link to clipboard
Copied
? Please clarify further.
Copy link to clipboard
Copied
When I click on my checkbox it cycles through 3 states
Blank, Cross, Tick
I would like to have cross and tick only.
Copy link to clipboard
Copied
I'm sorry. I still don't know what you mean. A check box? Is the "state" the Check Box Style in the options tab of the properties?
Copy link to clipboard
Copied
If so, enter the following script as a mouse up action in the check box:
if(event.target.style=="cross")
{
event.target.style="check";
event.target.value="Yes";
}
else
{
event.target.style="cross";
event.target.value="Yes";
}
Copy link to clipboard
Copied
Thank you, this works exactly the way I wanted.
Copy link to clipboard
Copied
You can have a 'tri-state' button, as 'Mouse UP' action of a button use this:
if (event.target.buttonGetCaption() == "") {
event.target.buttonSetCaption("\u2714");}
else if (event.target.buttonGetCaption()=="\u2714") {
event.target.buttonSetCaption("\u2716");}
else if (event.target.buttonGetCaption()=="\u2716") {
event.target.buttonSetCaption("\u25C7");}
else if (event.target.buttonGetCaption()=="\u25C7") {
event.target.buttonSetCaption("\u2714");}
Replace unicode symbols codes with your desired ones.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now