I need to add a hyperlink to the Sharepoint (2013) list item in one of the columns or make the list item itself as a link. I don't know how to do this.
Any help is appreciated!
I need to add a hyperlink to the Sharepoint (2013) list item in one of the columns or make the list item itself as a link. I don't know how to do this.
Any help is appreciated!
Your requirements aren't clear, but if you want the list item to direct you somewhere other than the display form page, you can use a calculated column to combine a url and the item name.
The formula would be:
="<a href='"&%URL_Field_Name%&"'> "&[%field_name%]&"</a>"
You can take input from user in textboxes and on button call JavaScript function to set the URL Field of the list item as given below:
var urlValue = new SP.FieldUrlValue();
urlValue.set_url("http://google.com");
urlValue.set_description("my description");
newListItem.set_item("UrlFieldName", urlValue);
References:
m after a same kind of solution. Please suggest the javascript wherein we want the item name: Apply Now to be shown with the value of the hyperlink. I
ve tried calculated column, but in my case the moment user is checking the details in dispform mode, calculated column code is visible rather than the hyperlink.