Skip to main content
New Participant
August 31, 2022

Returning link paths using Multifield

  • August 31, 2022
  • 2 replies
  • 1423 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Employee
August 31, 2022

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.

 

Thanks

Sanjana12Author
New Participant
August 31, 2022

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.

ksh_ingole7
New Participant
August 31, 2022

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> 
    
    </div>
Sanjana12Author
New Participant
August 31, 2022

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