OrchardCore icon indicating copy to clipboard operation
OrchardCore copied to clipboard

Validation Error Border Missing for Content Picker

Open SndpAST opened this issue 11 months ago • 5 comments

Describe the bug

In Orchard Core 2.1.5, the validation error styling for required fields is inconsistent across different field types. While text and date fields correctly display a red border when validation fails, the Content Picker field does not show the error border when it is required but left empty.

Orchard Core version

2.1.5

To Reproduce

  • Add a Content Picker field to a Content Type.
  • Mark the field as Required in its settings.
  • Create a new Content Item of this type and leave the Content Picker field empty.
  • Try to save the form.

Expected behavior

  • The Content Picker field should display a red error border similar to text and date fields when validation fails.

Logs and screenshots

Image

SndpAST avatar Feb 07 '25 07:02 SndpAST

Thank you for submitting your first issue, awesome! 🚀 We're thrilled to receive your input. If you haven't completed the template yet, please take a moment to do so. This ensures that we fully understand your feature request or bug report. On what happens next, see the docs.

github-actions[bot] avatar Feb 07 '25 07:02 github-actions[bot]

@SndpAST are you going to submit a PR for it?

hishamco avatar Feb 08 '25 00:02 hishamco

This is indeed an issue. I guess it's because while the other two are simple text inputs, the Content Picker is not, and thus needs specific support for this.

Piedone avatar Feb 09 '25 23:02 Piedone

I will wait until tomorrow for @SndpAST if he didn't reply I will might take this

hishamco avatar Feb 09 '25 23:02 hishamco

We triaged this issue and set the milestone according to the priority we think is appropriate (see the docs on how we triage and prioritize issues).

This indicates when the core team may start working on it. However, if you'd like to contribute, we'd warmly welcome you to do that anytime. See our guide on contributions here.

github-actions[bot] avatar Feb 13 '25 18:02 github-actions[bot]