Hi there
I’ve added a phone number input field in the order template. I wanted to add the same error message as on email field if the phone field is empty.
How can I achieve that?
Best, Chris
Hi there
I’ve added a phone number input field in the order template. I wanted to add the same error message as on email field if the phone field is empty.
How can I achieve that?
Best, Chris
Hi @christoph.richard, thanks for reaching out!
We have no easy way at the moment to make the custom field behave as a default required one.
What we suggest is that you use a required
parameter in the input, so it shows something like this:
And if the looks is important, you can try to implement your own validation that adds the error message and the red border, so it looks like ours.
Thanks.