Tree-like folder/file structure

If you open the form in design mode and look on the bottom right corner you will see 3 form events.

By default they are empty, which means no user function is executed when the form appears, disappears or its data binding is refreshed.

If you want to run something when the form appears, all you need to do is click on the blue arrow and Anvil will add the show_form name on the properties window and create a stub of the show_form function on the code window. You could also type a different function name, but using the standard one makes it more readable.

2 Likes