TI: checkbox parameter - default value doesn't work

Issue #352 resolved
Maurycy Mioduski created an issue

I have a TI widget with a checkbox parameter like that:

“pCheckbox”:

{

“type”:”checkbox”,

“trueValue”:1,

“falseValue”:0,

“value”:1,

“label”:”Add input Elements?”

}

Whenever I open the page, the default value for this parameter is always set to “No”.

Comments (5)

  1. Ada Trajer

    For the checkbox to work properly, all values ​​should be put in quotes:

    "value": "1",

    "trueValue": "1",

    "falseValue": "0"

  2. Maurycy Mioduski reporter

    thanks a lot!
    Important: “1” style should be used also for numeric parameters!!

  3. Log in to comment