Text inputs (short and long)

Example: require text to start with “hello”
1
Describe your rule to the AI
In the Weavely AI chat, type something like: “All of the inputs in the long text input question should start with hello in order to be valid.”
2
AI generates the regex pattern
Weavely’s AI creates a regular expression and automatically fills it into the custom pattern field for that question.
3
Test it in preview
Open the form preview and try submitting a response that doesn’t start with “hello” — you’ll see a “please enter valid format” error. Now change your input to start with “hello” and submit again. This time it goes through.
Number input

Example: require numbers starting with “91”
1
Describe your rule to the AI
In the AI chat, type something like: “A response is only valid if it starts with 91 and then anything after that.”
2
AI generates the pattern
The AI creates a regex and sets it in the pattern field for your number input.
3
Test it in preview
In the form preview, enter a number like
10 and submit — you’ll get an error. Now enter 911 and submit — it goes through successfully.Email input

@ symbol to be accepted. No configuration needed.
Custom pattern (regex)
You can add a pattern to further restrict which emails are accepted. For example, if you only want to allow Gmail addresses, describe that rule to the AI and it will generate the appropriate pattern.
Phone number input

+1, +44, +32), the form will reject it.
Custom pattern (regex)
You can further restrict phone inputs by specifying a pattern — for instance, only accepting numbers from a specific country code.
URL input

http:// or https:// followed by the rest of the address. Entering just a domain name like weavely.ai without the protocol will be rejected.
Min / max length and custom pattern
You can also set length restrictions and custom patterns on URL fields. For example, you could restrict inputs to only .com domains.
Date and time inputs

Quick reference
For any field that supports a custom pattern, you can always ask the AI to generate the regular expression for you. Just describe the rule you want in plain English, no regex knowledge required.