I have a Basic question regarding how to "re-use" a function
This is super basic, but I am stuck.
I have a screen with a gallery, and a Button, Icon and Text Box.
All three share the same Action onselect function.
Right now? I copy paste the function to each Action / Onselect box.
Obviously this is not a best practice.
Where should I put the function code and how can I reference it from the three objects?