Adding multiple links in links field but its opening as single link

Hi,

I have created an interface where I am tracking some details which even has a Links column so I have created a paragraph/text field to receive the user's inputs (External URL links), now after the links are inserted, submitted, and saved. I am showing them up on a Record view using the links field > a!safeLink.

If one link is updated by a user then it's okay its working fine and opens the window in a new tab see image 1:

But if a user is updating more than 1 link then it's not differentiating between multiple links and assuming the entire entry as a single link, I tried using commas, semi color between links but nothing is working, see below:

Could someone please help me with this?

Best,

Mohammed Khaiserulla

  Discussion posts and replies are publicly visible

Parents
  • You should use a!richTextDisplayField and then add char(10) between the different rich text items to differentiate. 
    Once done, you will be able to add individual links on each item using a!safeLink() and they will be available as separate links. 

  • Hi ,

    Thanks I used split and index to separate links using richtext field

    a!richTextDisplayField(
    label: "Links",
    labelPosition: "JUSTIFIED",
    instructions: "Maximum 3 links can be updated.
    Keep a semicolon; between each link to differentiate between them. example www.xyz.com;www.abc.com",
    value: {
    a!richTextItem(
    text: {
    a!richTextItem(
    text: index(split(local!links,";"),1,local!links), /*Index(mentioning value whose index should be taken,Indexed value you want, Default value)*/

    link: a!safeLink(
    label: index(split(local!links,";"),1,local!links),

    uri: index(split(local!links,";"),1,local!links)

    )
    ),

    char(10),

    a!richTextItem(
    text: index(split(local!links,";"),2,""),

    link: a!safeLink(
    label: index(split(local!links,";"),2,""),

    uri: index(split(local!links,";"),2,"")

    )
    ),

    char(10),

    a!richTextItem(
    text: index(split(local!links,";"),3,""),

    link: a!safeLink(
    label: index(split(local!links,";"),3,""),

    uri: index(split(local!links,";"),3,"")

    )
    )

    }
    )

    }
    )

    It's working on an interface but while I am trying to apply the same logic on a gridColumn inside Record List its giving following output on record view

Reply
  • Hi ,

    Thanks I used split and index to separate links using richtext field

    a!richTextDisplayField(
    label: "Links",
    labelPosition: "JUSTIFIED",
    instructions: "Maximum 3 links can be updated.
    Keep a semicolon; between each link to differentiate between them. example www.xyz.com;www.abc.com",
    value: {
    a!richTextItem(
    text: {
    a!richTextItem(
    text: index(split(local!links,";"),1,local!links), /*Index(mentioning value whose index should be taken,Indexed value you want, Default value)*/

    link: a!safeLink(
    label: index(split(local!links,";"),1,local!links),

    uri: index(split(local!links,";"),1,local!links)

    )
    ),

    char(10),

    a!richTextItem(
    text: index(split(local!links,";"),2,""),

    link: a!safeLink(
    label: index(split(local!links,";"),2,""),

    uri: index(split(local!links,";"),2,"")

    )
    ),

    char(10),

    a!richTextItem(
    text: index(split(local!links,";"),3,""),

    link: a!safeLink(
    label: index(split(local!links,";"),3,""),

    uri: index(split(local!links,";"),3,"")

    )
    )

    }
    )

    }
    )

    It's working on an interface but while I am trying to apply the same logic on a gridColumn inside Record List its giving following output on record view

Children