Question

Set Clipboard property in HTML

Can I set the return value of a function in HTML to a clipboard property? If yes please provide me syntax?

***Edited by Moderator Marissa to update platform capability tags****

Comments

Keep up to date on this post and subscribe to comments

Pega
March 21, 2019 - 2:23pm

Hi,

This isn't something I've personally tried, but the below post looks like it has some information about this:

https://community1.pega.com/community/pega-product-support/question/it-possible-set-value-clipboard-html

Hope this helps!

-Kurt

March 23, 2019 - 6:11am

Hi, 

     You can use JSP Code in HTML Rule to set Value to Clipboard Page.

Syntax:

  1. <%
  2.  
  3. ClipboardPage PageName= tools.findPage("AnyClipboardPageName"); // Get Clipboard Page
  4.  
  5. PageName.putString(".propertyName","ValueToSet"); // Set Value to Property
  6.  
  7.  
  8. %>

I attached a Sample Html Rule named "RuleInfo" . I highlighted the code to get Clipboard Property. 

Similarly you can use PageName.putString(".propertyName","Value for property") to set the proeprty value in clipboard