Expand my Community achievements bar.

SOLVED

Check box options

Avatar

Level 2

Can anyone tell me if it is possible to have a cell in a table set up as a check box that toggles between a tick, a cross and blank (or a dash or something)??

thanks in advance

1 Accepted Solution

Avatar

Correct answer by
Level 10

can you send your form to nith@mof.gov.bh ?

Nith

View solution in original post

5 Replies

Avatar

Level 10

Add a checkbox and choose the On/Off/Neutral States option.

Write the following lines of code on click event of the CheckBox

if(this.rawValue=="1"){

     this.ui.checkButton.mark ="check";

}

else if(this.rawValue =="2")

{

     this.ui.checkButton.mark ="cross";

}

Is this what you would like to have?
Nith

Avatar

Level 2

That looks like it will do exactly what I want, I keep getting this error though:

Syntax error near token '{' line 2, column 1....any suggestions?

Avatar

Correct answer by
Level 10

can you send your form to nith@mof.gov.bh ?

Nith

Avatar

Level 2

Greetings,

I'm attempting the same thing (check box with no value, check [for on] or dash [for neutral]) and get the same error.  Was a solution found for this?  Thank you.

Avatar

Employee

Please make sure that the script language for your event is set to JavaScript NOT formcalc.

That will fix your issue.