Here’s a place where this issue is the discussed in the docs: https://anvil.works/docs/client/javascript/html-forms#running-javascript-on-form-startup
But the docs could probably be improved on this point. If you have a thought on where else it should be, people often put requests like that in this thread: Anvil Documentation Suggestions [ON-GOING] - #67 by rickhurlbatt