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.
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?
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?
@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.