function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nick ValerioteNick Valeriote 

Looking for Code Sample for Scrollable Modal Pop-Up Window

Hi SF Community,

I am not a developer, but have been known to be able to modify existing code to meet some basic needs.

With this said, can anyone provide me with some basic code for the following?
- I would like to add a modal pop-up window that contains text that I specify
- This modal window has a vertical scroll, in case content extends beyond the standard window dimensions
- A user can access this pop-up by clicking a link called 'Predefined Comments'.  

Situation is as such:
I have a custom object called Invoices, and it's based on a bunch of classes and pages that a SF developer created for me.
At the bottom of the invoice page is text box called Comments, whereby users can add comments.  
Users have predefined comments in some cases that they use over and over, and I was hoping to be able to have those comments in this modal pop-up that a user can then copy and paste into the Comments field.

Any help is appreciated.
Thanks!
Nick