Skip to main content
Nintex Community Menu Bar
Question

Copy URL Ctrl + c and then Paste with Button

  • July 11, 2024
  • 5 replies
  • 22 views

Forum|alt.badge.img+14

From button can I perform Ctrl+v to a field?

How it would work:
I copy the URL from another browser session by pressing Ctrl + c. I now return to the Skuid page and want to press a Skuid button “Copy”. This would an action to paste the copied URL to a salesforce field. The field I am coping to is not yet visible on the page. Once copied I condition a non-editable field on the Skuid page to show.

5 replies

Forum|alt.badge.img+8

You could do some like the following:

  • Add render condition on the field, to not render if it does not have value. Also, add enable condition on the field so it is always disabled.
  • When the button is pressed it calls JS Snippet.
    • Where the JS snippet access the clipboard to retrieve the coppied value.
    • Calls model.updateRow(r, {idField: coppiedValue});

The only difficulty is accessing clipboad, as JS does not provide a clear way of interacting with clipboad. Google results brings up navigator.clipboard.readText(), but I don’t know if that will work.


Forum|alt.badge.img+14
  • Author
  • July 12, 2024

There must be a method to copy what is on the clipboard to a field with “Actions”


Forum|alt.badge.img+17
  • Nintex Employee
  • July 12, 2024

Bill - its an interesting idea, but Skuid has not yet attempted to create an Action that would retrieve field contents to the users clipboard - or populate data from the users clipboard.

Lukas is correct - its a custom solution for the time being - and a problematic one because of the differences in browser and OS implementation of Clipboard support.


Forum|alt.badge.img+14
  • Author
  • July 12, 2024

Thanks. Skuid responses to issues have become so much quicker in the past ½ year. Keep it up.

Cheers,

Bill


Forum|alt.badge.img+17
  • Nintex Employee
  • July 12, 2024

Appreciate the compliment. We try…