I used the code for Dynamically Populating Drop Down Fields located at
https://docs.gravityforms.com/dynamically-populating-drop-down-or-radio-buttons-fields and it works great.
Can the code be removed or does it need to be executed every time the form loads?