Field validation - min. number of characters equals 1

Hi.

I am trying to force a validation rule for a field not to have less than 1 and more than 30 characters using Min (red arrow) and Max Character Limit (green arrow). It works fine for the upper limit but not for the lower limit of 1. The minimum value for the check that I can set is 2.
Basically the logic should be that if the minimum limit is 1 then the field should not be blank.
I know that there is an option to set the field as mandatory (blue arrow) which is valid as a workaround, but due to the layout of the step (UI), it is not possible for me to have that unless I redesign the entire step layout.
Therefore I would suggest to implement Min Character Limit to also have accept value of 1, meaning to check the field for null.

Thanks!

BR.
Hivzo.

Hi @HCEH thanks for the product suggestion. I see you are trying to restrict the character limit of the text input between 1-30 characters. It seems like the minimum character limit doesn’t apply with a value of ‘1.’ We will look into this and hope to address it soon.

Out of curiosity, why would marking the field as ‘Required’ force you to redesign the entire step layout?

1 Like

Thanks @shep
To answer your question, the screen is already crowded with input fields and other information and we try to minimise the impact on users in regards to redesign which from the development and UI point of view is very much needed, but would require extra work.

@HCEH understood — I’m guessing if you were to ‘mark as required’ for your input fields, you would need to reposition them so that the validation error message will appear clearly? What you would prefer here is to enforce the user to input a value but not have the validation error message appear?

Would ‘mark as required’ but hiding the error message solve your use case here?

Thanks @shep
That does help some places in the layout, but actually I think that the error messages are fine and descriptive.
Thanks for the input.

@HCEH you’re welcome. Does this suggestion solve your use case, or do you still think you need the min. number of characters equals 1?

1 Like

@shep
I would still expect to have the “min. number of characters equals 1” work in the situations where needed. Clearly an improvement suggestion from my side for you guys to implement in one of the upcoming releases. It doesn’t seem as a big code change and would help cover special situations.

1 Like