Min Length setting acts as defacto "Field is required" setting

Environment

Discourse Version: 2.7.4

Plugin Commit: version 0.7.0

Steps to Reproduce

  1. add composer field
  2. leave “Field is required” empty
  3. Add any value in “Min Length”

When user leaves the composer field empty, error message appears:
…must be at least 10 characters

That makes the field defacto required

Example

http://recordit.co/0xi0vWrh1i

here is screen capture for reference

Logs

nothing wizard relevant in logs

While this is not a bug per se, I think you’re right. If the field is not required the min length should only apply if there is content entered. We’ll change this.

1 Like

Faiz is keen to do this one after all. He’s working on this this week.

2 Likes

@Jrgong
I’ve pushed a fix for this. Do check and confirm.

This topic was automatically closed after 7 days. New replies are no longer allowed.