Copy field contents to clipboard |
9/24/2021 4:23:53 AM |
PHPRunner General questions | |
S
SteveDickson author
I noticed a post from over four years ago related to add/edit pages.Q: I want to create a button that will copy the data entered in to the field named "FirstName" before the record is added or inserted. $("#value_FirstName_1").select(); document.execCommand("copy"); $("#value_FirstName_1").blur();Question is, can anyone think of a way to create something like this on a view page? I want people to share a URL such as |
|
![]() |
mbintex 9/24/2021 |
This blog entry from Xlinesoft discusses something very similar: https://xlinesoft.com/blog/2021/09/09/providing-access-to-web-application-via-unique-link/ |
S
|
SteveDickson author 9/24/2021 |
Thanks for that but I've got the field organised. I would just like any easy way for someone to "Copy" the link so they can post it elsewhere (website, facebook, etc). |
A
|
acpan 9/25/2021 |
Not sure If I understand correctly, if you want to concatenate the values of the fields on the view page and copy to clipboard, so that you can paste it else where, here's what you can do:
Note: as you said, the code is generated when record is saved, you can use set proxy value to transfer the code value from PHP Before display event to JavaScript Onload event of view page, or show the code directly from the view page to implement the above. |