Hi,
For the same component checkbox value are saving different in CRX.
1- from classic ui dialog it save-
true
2- from touch ui dialog it save-
"true"
Classic UI Dialog
<application-type-list jcr:primaryType="cq:Widget" fieldDescription="Click the '+' to add a new Product Type" fieldLabel="Product Type" name="./productType" width="600" xtype="multifield"> <fieldConfig jcr:primaryType="cq:Widget" xtype="multifieldpanel"> <items jcr:primaryType="cq:WidgetCollection"> <description jcr:primaryType="nt:unstructured" fieldDescription="Enter Description" fieldLabel="Description" key="description" name="./description" width="350" xtype="textfield"/> <showdescription jcr:primaryType="cq:Widget" fieldLabel="Show Description" key="showdescription" name="./showdescription" width="350" xtype="checkbox"/> </items> </fieldConfig> </application-type-list>
Touch UI dialog
<application-type-list jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/multifield" fieldDescription="Click the '+' to add a new Product Type" fieldLabel="Product Type"> <field jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/fieldset" acs-commons-nested="" name="./productType"> <layout jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns" method="absolute"/> <items jcr:primaryType="nt:unstructured"> <column jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/container"> <items jcr:primaryType="nt:unstructured"> <description jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/textfield" fieldDescription="Enter Description" fieldLabel="Description" key="description" name="./description" width="350"/> <showdescription jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/checkbox" text="Show Affiliated Society" key="showAffiliatedSociety" value="true" name="./showAffiliatedSociety"/> <showdescriptionType jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/hidden" name="./showdescription@TypeHint" key="showdescription" value="Boolean"/> </items> </column> </items> </field> </application-type-list>
Views
Replies
Total Likes
They are different data types.
The Touch UI checkbox is based on:
The Classic UI one is based on this data type:
https://docs.adobe.com/content/docs/en/cq/5-6-1/widgets-api/index.html?class=CQ.form.Checkbox
So each one will work for the given checkbox on a dialog in their respective views.
Views
Replies
Total Likes
is there any workaround so i can save same value from both Touch UI and Classic UI.
Views
Replies
Total Likes