
Announcements
This looks like a bug in the Modern Number Input control's behavior when set to DisplayMode.View. The control seems to retain the last non-null value in its UI display even though its Value property correctly updates to Blank().
Since this appears to be a UI issue (not a data issue), here are a few workarounds you can try:
Instead of directly setting the control’s value, force a UI refresh using an intermediary label:
Add a hidden label (lblRefresh) and set its Text property to:
Then, set the Modern Number Input's Default property to:
🔹 Why?
"") when varNumber is Blank(), forcing the UI to update.Instead of directly setting the number input to DisplayMode.View, toggle its mode based on whether the value is blank:
🔹 Why?
DisplayMode.Disabled forces the UI to refresh while keeping the field read-only.varNumber is not blank, it switches back to DisplayMode.View.If using DisplayMode.View is not strictly necessary, try keeping the control in Edit mode and use DisplayMode.Disabled instead. It will correctly show a blank value when the variable is Blank().
If you're confident this is a reproducible bug, consider reporting it:
DisplayMode.View caches and retains values.