Expand my Community achievements bar.

3 state checkbox: check OR cross OR off

Avatar

Level 2

Is it possible to add a script to the click event to set the check style?  I would like an On value (1) to show a check, an Off value (0) to show a cross and a Neutral value (2) to set the checkbox to blank.  When I'm in the code window (language set to formcalc) and I type the field name and hit the . key I don't see anything that looks like it would be the check style to set.  In another post I found the following:

style.ch    checkmark

style.cr    cross

style.di    diamond

style.ci    circle

style.st    star

style.sq    square

but I don't see how I'm supposed to set the value

3 Replies

Avatar

Level 10

Hi,

It is possible, but involves a bit of script. Here is an example: https://acrobat.com/#d=4gSLmyfhH6ejuEXweY9bKA

I don't think you will be able to achieve all that you want, as the default behaviour is that if the checkbox is off there is no mark in the box. I don't think you can influence/change that behaviour.

You could change the specified values to mimic off/neutral.

Hope that helps,

Niall

Assure Dynamics

Avatar

Level 2

(FYI - The way to do this using formcalc is simply Checkbox1.ui.#checkButton.mark = "cross")

Message was edited by: albert.clawson - the forum won't let me mark the above reply as the correct answer for some reason.

Avatar

Level 2

The only way to mark a thread as answered is to create a new response.