cancel
Showing results for 
Search instead for 
Did you mean: 

CheckBox default configuration

rohit_chakrabor
Champ on-the-rise
Champ on-the-rise
Hi, All

I am using CheckBox in my form dialog and I am setting default value to CheckBox, If I open the form dialog CheckBox is in "on" state for all cases. its not considering the default value. here is my code

editPropertiesAndAssociations.push({
        name: "alfresco/forms/controls/CheckBox",
       config: {
        name: "prop_" + property.name.replace( type + ":", type + "_"),
        label: booleanProperty,//property.title,
        description: "Enter " + property.dataType + " value.",
        value: "{itemData.prop_" + property.name.replace(type + ":", type + "_") +
           ".displayValue}"
       }
      });


I checked the value of "{itemData.prop_" + property.name.replace(type + ":", type + "_") + ".displayValue}" by initializing it to label its false but in the form dialog the checkBox is true, I just updated the Aikau 1.0.8.1 to Aikau 1.0.46. Is there any configuration mistake.
do you have any suggestion?

Thanks
1 REPLY 1

ddraper
World-Class Innovator
World-Class Innovator
You raised an issue on GitHub about this… you're trying to use the widget incorrectly - a checkbox *widget* expects a value to be true or false. It doesn't accept general values. It's not an HTML checkbox - it's a JavaScript widget.