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
BedrockMission!

Learn More

View all

Sign in to view all badges

How to control the order of dialog fields

Avatar

Avatar
Validate 1
Level 2
carloso98118279
Level 2

Likes

4 likes

Total Posts

10 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
carloso98118279
Level 2

Likes

4 likes

Total Posts

10 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
carloso98118279
Level 2

06-07-2018

When I created a dialog which inherit from another dialog I have seen that sometimes the order of the nodes doesn't correspond to the order in which the fields are rendered in the dialog. Is there a way in which I can specify exactly where a field should be rendered?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

06-07-2018

Only way is to define JCR nodes - dialogs are rendered based on the way nodes are structured. Watch part 3 in this video series here to see how nodes in a dialog and the order of the fields in the dialog are related: Scott's Digital Community: Guided Journey for Using Granite Resources Types in Experience Manager Co...

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 2
rajkumarsamala
Level 2

Likes

5 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
rajkumarsamala
Level 2

Likes

5 likes

Total Posts

14 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
rajkumarsamala
Level 2

26-05-2020

We can add sling:orderBefore attribute to component dialog field.

Syntax: sling:orderBefore=<--Node-Name-->

Ex: sling:orderBefore="parentPage"

Here parentPage is input field node, Now when you apply sling:orderBefore attribute, then that field will show top of parent page input field.

Thanks for reading.