Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

sreekalyanip
Level 3
Level 3

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
Arun_Patidar
Correct answer by
Community Advisor
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

View solution in original post

1 Reply
Arun_Patidar
Correct answer by
Community Advisor
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

View solution in original post