I have searched high and low and cannot find any existing article or guide that adequately shows me how to do something very simple. I am not very well versed in Javascript so might be making mistakes, but hoping the answer is a simple one.
I have a standard list in a SharePoint 2013 site, with a few custom fields. One field is a single line text field called "Link". All i want to do is have a script sitting in a script editor web part on the (OOTB) display form which will display the value of the 'link' field for the current item that is being displayed in the form.
My plan from there will be to build a URL from this data, and to do that i am fine with. It's just getting the value from SharePoint into a global variable that is making me go round in circles.
Can anyone help me with the code i need to simply pull the 'link' field value from the SharePoint list for the current item that is being displayed and store it in a global variable (so i can then go on to use it in code to build a link and other stuff)?