Hello,
It is possible to validate an email address entered into the igTextEditor (or possibly igMask) on the client side?
Thank You,
Randy
Hello Randy,
Have you managed to test the sample I have attached in previous response? If you need any further assistance or if any additional questions arise feel free to update this thread.
Thank you for your reply.
I have one more suggestions which reproduced the desired behavior when implemented:
.RegExp(@".[2-9][0-9]{2}..[0-9]{3}.[0-9]{4}"))
Attached is a working sample for your reference.
Please let me know if it works for your project. If you still encounter unexpected behavior please provide the sample and feel free to update the thread with additional questions or details.
Hi Dimka,
Of course I will be glad to do that.
I will be traveling for the next two weeks, so is it possible to keep this thread open until the end of October? I will get your sample done by then, or let you know that I cannot reproduce the problem outside of my project.
Thanks,
In order to investigate further could you send me a sample reproducing your scenario?
Thank you in advance.
Hello Dimka,
Thank you for your message. For some reason, I am still unable to validate the US phone number example. Here is the code I am using:
@(Html.Infragistics().MaskEditorFor(model => model.PhoneMobile, editorInputAttr)
.InputMask("(999) 999-9999")
.Required(false)
.ValidatorOptions(model => model
.OnSubmit(false)
.OnChange(false)
.OnBlur(true)
.ShowIcon(true)
.AnimationShow(200)
.Alignment(ValidatorErrorLabelTextAlignment.Bottom)
.CustomErrorMessage("Phone Number Is Not Valid")
.RegExp("/^\\([2-9][0-9]{2}\\)\\ [0-9]{3}\\-[0-9]{4}$/")
)
.Render()
I tried four variations for the RegExp"
.RegExp("\\([2-9][0-9]{2}\\)\\ [2-9][0-9]{2}\\-[0-9]{4}")
.RegExp(@"([2-9][0-9]{2}) [2-9][0-9]{2}-[0-9]{4}")
.RegExp("^\\([2-9][0-9]{2}\\)\\ [0-9]{3}\\-[0-9]{4}$")
Can you suggest what I might be doing incorrectly?