Cosmos preview panel

Hi guys!

I need to change the text of the preview button which opens preview panel. I found where pega creates this button but it is located in final rule. How can I change text of this button?

Hi,

Save that rule to your application ruleset and change the text and check- in, refresh the UI it will work.

Theme-Cosmos xx-xx-xx to YourApp:xx-xx-xx

Thanks

Chandan U

Hi ,

  • You can save as the rule in your screenshot into a new Name such as “cosmos-preview-panel” (as it is a Final Rule ) save it into your Application Ruleset and can change the line
 peekElem.text = "Preview"  to  peekElem.text = pega.u.d.fieldValuesList.get("Previewtext");
  • Create a Field value With Name “Previewtext” and add desired text into that..

  • Save as “pz-cosmos-ui-scripts • script” Static Bundle Rule into your Ruleset and add the above creates js file replacing the “pz-cosmos-preview-panel.js”

Hope this Helps!!

see Theme-Cosmos Preview button localization | Support Center

please avoid doing a save as of a final rule - this will cause issues on upgrade. The fix is in 8.4.2 - Theme-Cosmos 01.01