cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Copy Link Button

Jump to solution

Hi Folks,

    I'm looking to implement a button that copies the link to a nintex form.

Has anyone done this before?

To Clarify My question:

I'm looking for direction on how to create a button that copies the link of a nintex form.

-The form has been created and saved

-Upon opening the form, a button appears at the top that allows the user to copy the link of that form.

- I can implement the logic on how to hide the button for new forms, looking for help with the javascript(may  be)

Labels: (1)
0 Kudos
Reply
8 Replies
Workflow Hero

Re: Copy Link Button

Jump to solution

google returns ~6 milion answers to your question. hard to pick only one to answer your question.

(joking )

if you expect any sensefull answer you have to describe your problem clearly and in as much details as possible.

0 Kudos
Reply
Workflow Hero

Re: Copy Link Button

Jump to solution

I assume you want a button on the nintex form itself that copies the URL of the current item (form) ready to paste it?

Reply
Workflow Hero

Re: Copy Link Button

Jump to solution

Yes, that's exactly what I looking for.

I understand that the user may have to save this form first for this to be possible. I just wanted to eliminate the possibility of people copying incomplete link

Reply
Workflow Hero

Re: Copy Link Button

Jump to solution

I assume you'll need script to do this and that's not my area of expertise I'm afraid - just wanted to clarify the question - perhaps my fellow BRG member ‌ might have a cool trick up his sleeve?! 

Reply
Workflow Hero

Re: Copy Link Button

Jump to solution

I'm not able to test this out at the moment, but this could lead in a good direction. If it does then we can post the steps to produce instead of a link out. You would need to add a JavaScript button that calls the functions in the article. 

html - Click button copy to clipboard using jQuery - Stack Overflow 

Reply
Workflow Hero

Re: Copy Link Button

Jump to solution

The easiest, and safest way, is to add the button to your form with a Client Click of CopyURL()

Then add this code to the Custom JavaScript in form settings

function CopyURL(){
var text = window.location.href;
window.prompt("Copy to clipboard: Ctrl+C, Enter", text);
}‍‍‍‍

The user will be displayed a prompt box with the URL highlighted and can ctrl+c and close the window.

I know there is an additional step but I understand it is not best practice to add to the clipboard directly.

This will give you the correct functionality though.

Let me know how you get on

Reply
Workflow Hero

Re: Copy Link Button

Jump to solution

Thanks! Worked!

0 Kudos
Reply
Workflow Hero

Re: Copy Link Button

Jump to solution

Very nice!

Reply