Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

touch UI dialog with Object Array ?

Avatar

Level 3

Hello Community

I have a question about touch UI Dialog.

I am try to make a field that contain text and url ( or id in the page ). It can be populated depend on what the author wants.

I found String [] type but If I use the string [] type, text and url won't be together. So it can give mismatch result.

If there were Object [] or similar to that, I think I can do like

     Object []

          - String : text

          - String : url

Use case can be listed link.

Do you know how to make the Dialog ?

Thank you for the help!

Ryu

1 Accepted Solution

Avatar

Correct answer by
Level 10

I would use a MF in a Touch UI where an author can enter a String and URL value for each section that want to add.

Each MF would contain:

- String : text

- String : url

As shown here - a MF can contain many text fields.

Dialog2.png

View solution in original post

5 Replies

Avatar

Correct answer by
Level 10

I would use a MF in a Touch UI where an author can enter a String and URL value for each section that want to add.

Each MF would contain:

- String : text

- String : url

As shown here - a MF can contain many text fields.

Dialog2.png

Avatar

Level 10

Then you can read the data fields on the backend of the component and place them into a collection object.

Avatar

Level 3

Thanks you, smacdonald2008​!

I was google around a bit and found ACS-common package tho

Do I need to install the ACS-common to use Multifield or it comes with granite-ui ?

Thanks!