Skip to main content
Participant
October 11, 2024
Question

Is there a way to have a checkbox without a blank state

  • October 11, 2024
  • 2 replies
  • 543 views

I have a three 3 way checkbox with blank, cross and tick.

Is there a way of omitting the blank state?

This topic has been closed for replies.

2 replies

Nesa Nurani
Community Expert
Community Expert
October 11, 2024

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.

PDF Automation Station
Community Expert
Community Expert
October 11, 2024

?  Please clarify further.

alun_3920Author
Participant
October 11, 2024

When I click on my checkbox it cycles through 3 states

Blank, Cross, Tick

I would like to have cross and tick only.

PDF Automation Station
Community Expert
Community Expert
October 11, 2024

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?