Hello, I got a problem with the required status of formitem. You know that when a formitem is required non-empty value, its title will be bold.
I got a checkbox, required is false, not checked.
I add a ChangedHandler to it. When it's checked, i set its required true, and when unchecked, i set its required false.
What i want to achieve is that when i check it, it will be bold.
But I get the opposite result. When i check it, it's not bold. When i uncheck it, it becomes bold. I thought the checkbox's required has changed, but need refresh, so I try to redraw the form, but no effects.
So help me plz. Thank you very much.
I got a checkbox, required is false, not checked.
I add a ChangedHandler to it. When it's checked, i set its required true, and when unchecked, i set its required false.
What i want to achieve is that when i check it, it will be bold.
But I get the opposite result. When i check it, it's not bold. When i uncheck it, it becomes bold. I thought the checkbox's required has changed, but need refresh, so I try to redraw the form, but no effects.
So help me plz. Thank you very much.
Comment