Hello @Krishna Malutummeda ,
When you are creating a custom field on a form, you can define min/max characters on the screen itself. Attaching the screenshot below.
Hope it helps.
Vijay