Hello,
I make a custom widget and it's render from "multitext" question. In my custom widget, I have many input fields like email, phoneNumber. How can I validate if the email/phoneNumber is empty or not?
I tired "is not empty" validation and it's not worked
Hello,
It's hard to say what's wrong without the code. Could you share a minimal working sample illustrating the issue?
It your question related to SurveyJS Creator?
Thanks, Serge
SurveyJS Team
Could you please create a plunker example with your custom widget?
Here is the example with our custom widget. The question is required, but we do not write any code in custom widget because it is done on a question base level. Question asked custom widget, give me the value, if it is empty and the question is required then it raised the error. You should not do anything in your code. Of course if you write and register the custom widget correctly as written in our docs.
Thank you,
Andrew
SurveyJS Team