Hey,
I have a generic list with a column "view comments". This column schould be displayed as a hyperlink. But with a click on the link, instead of a redirect to a url, a modal dialog should open.
The code to open the popup looks like this:
javascript:OpenPopUpPageWithTitle('{SiteUrl}/SitePages/viewComments.aspx?vorschlagKomplettId={ItemId}', RefreshOnDialogClose, null, null, 'View Comments');
First I tried a hyperlink field where I put the link above in the Url-Textbox. That produced the exception "invalid URL".
Then I tried a field of type "single line of text" where I entered something like this: "<a href='[javascript above]'>Show Comments!</a>"
But in the list, that string is just displayed as a plain-string but not html-encoded. I also tried field types "multi lines of text" with the different options with the same result.
So how do I get a list-column with a javascript, which is displayed as a hyperlink?
Thank you!