
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-06-2022 04:34 AM
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.)
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2022 09:09 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2022 09:09 AM