AnsweredAssumed Answered

CheckBox default configuration

Question asked by rohit.chakraborty on Dec 9, 2015
Latest reply on Dec 10, 2015 by ddraper
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

Outcomes