Page MenuHomePhabricator

Allow the HTMLForm Select and other field to have a minimum length set
Open, Needs TriagePublicFeature

Description

Feature summary (what you would like to be able to do and where):
HTMLForm's Select and other field should allow the minimum length to be specified that looks at the select and also other field. Validation on the maximum length uses JQuery's lengthLimit plugin, however, doing similar for the minimum length does not seem to be possible.

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
A form may require that a "reason" that uses select and other have a minimum length to it. Without this client-side validation, the user would only know that this was a problem once they submit the form and get a response back from the server.

Benefits (why should this be implemented?):
Would allow specifying a minimum length for the select and other field. The patch to allow this for all other text based input feilds is in review.