How to set a required field value to null.
How to set a required field value to null as well as in UI.
In my application, I have some input-text and select single fields which are required fields. The requirement is there can be scenario, where the user can clear the mandatory field and set it to null both in UI and variable. When I clear the value from mandatory field, the input field gets highlighted which is expected and while trying to save this field, the old value stays in the variable but it's not visible in the UI component. So it gets updated with the old value instead of null.