Expand my Community achievements bar.

SOLVED

Select value in dropdown in touch ui dialog based on the value selected in editable template

Avatar

Level 4

When the template author selects a value in design dialog it will be saved under policy of the editable template.

the design dialog will be as

1569477_pastedImage_0.png

Now when the authors opens the dialog then by default vertical line has to be selected in the dialog. but only the top element is being selected

1569478_pastedImage_1.png

Now if i want to select the value authored by the template author then how to proceed? i tried by using cqDesign but i was not able to get it selected

1569491_pastedImage_2.png

Please suggest how to proceed?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

The selected property should be type of boolean not expression.

To achieve above you can use datasource to create dropdown with preselected value based on value set from design dialog.

AEM 6.0 Forms Help | Dynamically populating drop-down lists

AEM Note: How to create dynamic drop down in Touch UI dialog in AEM 6.2.

Example :

aem63app-repo/HelloWorldCompDDServlet.java at master · arunpatidar02/aem63app-repo · GitHub



Arun Patidar

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi,

The selected property should be type of boolean not expression.

To achieve above you can use datasource to create dropdown with preselected value based on value set from design dialog.

AEM 6.0 Forms Help | Dynamically populating drop-down lists

AEM Note: How to create dynamic drop down in Touch UI dialog in AEM 6.2.

Example :

aem63app-repo/HelloWorldCompDDServlet.java at master · arunpatidar02/aem63app-repo · GitHub



Arun Patidar