Accessing Highlighted Text in UI Builder

Cody N
Tera Contributor

Working on a custom app in UI builder where I display a modal with some text in a read only text area. What I am wanting the user to do is highlight the text they are wanting to change then click a button to replace the text. Tried using window/document.getSelection() but after much pondering I found an article that states you can't use those globals on client scripts associated with UI builder. I've seen this type of workflow done directly on a portal page where you have access to the client controller but in UI builder it seems to be impossible.

Is there a way to get the highlighted text in UI builder when a button is clicked? Or do I just need to take another route on changing text (albeit not as clean as the highlight method.)

1 ACCEPTED SOLUTION

ServiceNow Tec2
Mega Sage
This has been resolved by ServiceNow Technical Support. Please refer to KB1020473 for more information.

View solution in original post

1 REPLY 1

ServiceNow Tec2
Mega Sage
This has been resolved by ServiceNow Technical Support. Please refer to KB1020473 for more information.