Can you auto scroll to different position on a popup based on a value?

I have a popup with error codes and a scrollbar. Is there a way to scroll to the correct section based on the error code? Currently it just using the onClick select view to open the popup.

Does this help?