Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

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!

Avatar

Level 10

See this article - it will teach you how to build and work with MF:

Scott's Digital Community: Creating an AEM HTML Template Language 6.3 component that uses a Multifie...

Avatar

Level 3

Thank you!