Forum Discussion
Dhiran Gajjar
Oct 06, 2021Iron Contributor
Copy Link not working
Hi, I have customised a SharePoint list form and I cannot get the url from the "Copy Link" button. Is this something anyone else is seeing? Dhiran
Sigar_Dave
Oct 06, 2021Copper Contributor
Are you trying to copy link from a new item form?
Copy link is supposed to give you a link to an existing item. When you are trying to click this button from the context of the New form - the item does not exist yet. Hence - it is impossible to construct the link:
Let me know if this helps.
Please click Accept as solution & :thumbs_up: if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it :thumbs_up:
Copy link is supposed to give you a link to an existing item. When you are trying to click this button from the context of the New form - the item does not exist yet. Hence - it is impossible to construct the link:
Let me know if this helps.
Please click Accept as solution & :thumbs_up: if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it :thumbs_up:
Dhiran Gajjar
Oct 06, 2021Iron Contributor
Hi,
The copy link button when the new form is opened is supposed to give you a link to the new form so that you can link it to a button on a page if you want. I have used this before for other sites but when I try it now the copy link doesn't return anything.
The copy link button when the new form is opened is supposed to give you a link to the new form so that you can link it to a button on a page if you want. I have used this before for other sites but when I try it now the copy link doesn't return anything.
- AngelaJ1sMar 07, 2023Copper ContributorHi, has anyone found a way to get the copy link to work on a new form. I haven't had a problem on other custom forms, but I do now.
- Dhiran GajjarMar 08, 2023Iron Contributor
Hi AngelaJ1s,
The only way I have managed to do this is to modify other links I have been able to get. So for you, you would need to modify this link to suit your environment,
.
https://<SITEURL>/_layouts/15/listform.aspx?PageType=8&ListId=%7b<LIST ID>%7d&RootFolder=<ROOTFOLDER>&Source=<RETURN LOCATION>
LIST ID - If you go to your list settings, you can get the guid from the URL on the settings page.
ROOT FOLDER - This will be the location of your list, for example, /sites/mysite/Lists/Listname
RETURN LOCATION - Where do you want to return the user once they complete the form action
Hope this helps