I put a currency control in my App. With no default set, or with {{null}} default, it will still default to “0”
I would expect it to clear the control.
I have turned on “Allow Clear”, and when the X is pressed, it will clear the control.
But
ui_currencyControl.clearValue();
ui_currencyControl.setValue( null );
Both leave the “0” in the control
Hello @Highway20Productions,
You’ll need to click on the validation and then select Allow null in the component. Make sure that Allow Null is enabled; only then will you be able to set the value to null.
1 Like
Hello @Highway20Productions ,
Turn ON “Allow Null” in Validation Then use ui_currencyControl.setValue(null);
we have the second option you can try this also.if you do NOT turn on “Allow Null”.
ui_currencyControl.setValue(undefined);
ui_currencyControl.setValue('');