Skip to content

Conversation

@engijlr
Copy link
Contributor

@engijlr engijlr commented Oct 20, 2025

Summary

Added support for the Mandatory setting in the Number Range property editor and removed the initial value assignment.

Changes

  • Removed default initialization of value.
  • Implemented mandatory → forwards required to inner inputs.
  • Added valueMissing check in to handle required fields.

@engijlr engijlr changed the base branch from main to v17/dev October 28, 2025 10:16
Copy link
Contributor

@madsrasmussen madsrasmussen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good. I have added one comment for a small adjustment to align with the other inputs.


this.addValidator(
'valueMissing',
() => '#validation_fieldIsMandatory',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To keep things consistent with the other inputs, we need to add a requiredMessage property. If it's not provided, we'll fall back to UMB_VALIDATION_EMPTY_LOCALIZATION_KEY.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants