In Gallery view, the hyperlink won't work if i change the format?

2022-06-27T19:33:03.363+00:00

Hi,

I’m using SP2019.

1- I have created a SharePoint list with a hyperlink column.
2- I have created a Gallery view on the same list.
3- I applied conditional formatting on the hyperlink column to show it ‘Blue’ and ‘Underlined’ to look like a hyperlink.
4- After saving the format, the hyperlink is no longer redirecting to the website, instead the item display form is opening.

How i can format a hyperlink in blue and underline it in Gallery view while maintaining the redirection to the website?

Thank you
Rachad

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,267 questions
{count} votes

Accepted answer
  1. Xuyan Ding - MSFT 7,586 Reputation points
    2022-06-29T08:07:37.34+00:00

    Hi @EL BADAWI EL NAJJAR, Rachad (GE Renewable Energy) ,

    1.I would like to confirm with you that you are sure that the gallery view is used in SP19? I don't have this view to display the list in my environment, but it's okay for me to test in an online environment.

    2.Change the style of the corresponding location in the format view, add two lines of code, and there is no problem with hyperlink redirection.
    Maybe you can give it a try.
    216051-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    3 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. EL BADAWI EL NAJJAR, Rachad (GE Renewable Energy) 21 Reputation points
    2022-06-29T11:18:05.323+00:00

    Thank you @Xuyan Ding - MSFT , your solution works great. The key is to Format the Gallery view and not the Column as you mentioned. I added also the 2 lines and the links are formated the way i require. Much appreciated :)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.