We have a custom entity that has multiple forms depending on an optionset value on the form.
When the page loads for an existing record a "changeForm" function is called last and evaluates the form that is loaded versus the value of the optionset field. If the form type does not correspond to the option set navigation is changed to the correct form. This works fine for existing records .
For a new record the user selects the value desired for the optionset and like above navigation proceeds to the correct form based on the optionset value chosen. However, the on-load event for the correct form loads and it calls the same change event but this time the value chosen by the user seems to be lost and is now undefined. When this happens the code is set to default to a specific form. This only seems to happen with one optionset type. Is there a way to maintain what the user chose ?
*This post is locked for comments
I have the same question (0)