CheckBox default configuration
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2015 01:37 AM
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
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
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
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2015 04:56 AM
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.
