I´ve created a formulary( Ticket Form) where a customer can add a Titel, select a Topic from a Dropdown and add a description in a Textfield also with the option to add an attachement. After submit the action email (in workflow)sends the information to a defined email address.
The Idea is now before submit, to check the value from the dropdown and based on the value send the information to different email addresses but I don't know how to accomplish that.
But I´m strugeling to hide the email field, with the "OnShow" Event in the Formulary . I get the error "An error occurred when executing the onLoad event code in form Form 1. Caused by: TypeError: BO.F_Email.setVisible is not a function"
It is a frequent mistake: You try to call item's method related to its presentation from Form event but at this time, the item has no visual representation yet!
I have no idea what is Form.onShow() useful for. The doc says that it is "called after the form is shown. This can occur after onNew and onLoad." Perhaps you can put here some code which is shared across onShow() events of all pages...