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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Returning link paths using Multifield


Level 5

I have a doubt. I'm trying to return a link path but it's coming in a string format. How to return a hyperlink that will point to the exact page instead of returning the path as a string?

1 Reply


Level 5

Hi @Sanjana12 


You just need to put the String in href attribute of anchor tag so that the hyperlink is added.

Please see the below code for <a> tag.


<div data-sly-list.item="${books.bookDetailsWithMap}">

        <p> Book : <b>${item.bookname} </b></p>
        <a href="${item.booksubject}"> Book Link</a> 


Level 5

Actually we have to wrap both of them into href otherwise it's not working


Employee Advisor

Hi @Sanjana12 ,


Any string added to href of anchor will show it as a link.

Can you please explain a little to understand the exact issue.




Level 5

When I'm putting the link path within href attribute, it's just returning the string value. But only when I'm wrapping the link path with the title name or whatsoever within anchor tag, it's rendering a hyperlink.