To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.
Dynamically update form according to inputted data
1 decade ago Apr 18, 2012 2:00pm
I'm trying to implement dynamic form: when user selects some value from a Select field, some new fileds should be added to the current form. To achieve this I've implemented FormFieldFactory which makes those extra fields not visible and I've tried to add listener to the Select field which makes required field visible.
But the ValueChangeEvent fires up when user actually clicks on the Select field, not when he selects value, so it makes user to click on the Select field twice (after the first click there no value in the corresponding property so listener does nothing).