TI: checkbox parameter - default value doesn't work
Issue #352
resolved
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)
-
-
For the checkbox to work properly, all values should be put in quotes:
"value": "1",
"trueValue": "1",
"falseValue": "0"
-
- changed status to resolved
-
reporter thanks a lot!
Important: “1” style should be used also for numeric parameters!! -
- removed milestone
Removing milestone: 2021_Q2 (automated comment)
- Log in to comment
+1
I saw this behavior happening as well.