Custom field validation

Everything good now.

1 more question, is it possible to have a custom validation of a field? (Ex: Only numbers, minimum number of characters, etc)


Unfortunately, custom validation of a field isn’t supported in our app. I am sorry!

I agree that this option would enhance our app and we’ll try to think it over in our future updates. We’ll keep you in the loop here :slightly_smiling_face:

1 Like

Hi guys,
I am about to transfer the forms from another platform to Elfsight but I found some shortcomings.
I suggest to have function to check the number of characters for text form for example if I set it to 10 characters, anything lesser or more than 10, the form will prompt error.
Another function is to pre-fill the form, for example I would like to request the user to key in the correct serial number for certain product which starts with some numbers or alphabets. For e.g. 1371??? , I hope this function can be added as well.
Thank you.


Hi @WOWGary :wave:

Many thanks for sharing your feedback with us!

We have a similar request to set the number of character for a specific field. I’ve merged your comment with this request. All the updates will be posted here :slightly_smiling_face:

Also, glad to tell you that you can pre-fill form fields using URL parameters. In this post you can find all the details - Form widgets: How to pre-fill form fields using URL Parameters

If any further questions come up, feel free to let me know. I’ll be happy to help!

Hi Max,
I try your suggestion but I don’t understand where should I input this to?
For example > “mywebsitedotcom/contact/?first-name=John%20Doe”


Sorry for being not clear enough @WOWGary !

This option works only when you click on the element with a pre-fill URL or just opens such a link. For example, if you add this link (mywebsitedotcom/contact/?first-name=John%20Doe) to the custom button and click on it, you’ll be redirected to the page with the form, where the info from the URL Parameters (John Doe) will be automatically added to the corresponding field (Name and Surname).

If this option doesn’t work for you, please describe your use case in more detail :slightly_smiling_face: