Email Validation and Trigger different variants of OnScreen Keyboard for Mobile
Posted: Sun Aug 23, 2020 2:32 am
Hello!
Dialogue System is a great tool, which provides a lot of functionality!
I'm relatively new to Dialogue System, and a beginner programmer!
I came across a situation, where I require User Input, at certain instances of an ongoing conversation!
I have used "TextField" at certain instances in the conversation, and when I use it for mobile platform, the default alpha-numeric variant of OnScreen Keyboard does pop-up, when TextField is triggered.
That works fine for instances where like I am asking user to provide their First Name and Last Name, where only Text Input is required.
How could I validate the Input provided by user, at that instance itself? For example: I require a condition where First Name has to be a minimum of 3 characters and it cannot include numbers or any other special characters. The user cannot progress ahead unless proper input is provided. Same applies with Last Name, where it cannot include numbers or special characters & cannot proceed ahead, unless proper input is provided! Is there any way by which I could do that?
Also, some of the other attributes which I require from user, are email and mobile number. Is there any way by which I could trigger the email variant of OnScreen Keyboard, when TextField for email is triggered, and trigger the Numpad variant of OnScreen keyboard, when TextField for Mobile Number is triggered?
Also, I wanted to know if there's any way by which I could validate email address provided by user [using Regex maybe]. Like, the user cannot proceed ahead, unless proper email is provided.
Apart from that, I also require user to provide their Birth Date. Is there any proper way, by which we could provide a date-picker at certain instance in the conversation, similar to that of providing TextField?
Any help would be much appreciated!
Kind Regards,
Bhavin
Dialogue System is a great tool, which provides a lot of functionality!
I'm relatively new to Dialogue System, and a beginner programmer!
I came across a situation, where I require User Input, at certain instances of an ongoing conversation!
I have used "TextField" at certain instances in the conversation, and when I use it for mobile platform, the default alpha-numeric variant of OnScreen Keyboard does pop-up, when TextField is triggered.
That works fine for instances where like I am asking user to provide their First Name and Last Name, where only Text Input is required.
How could I validate the Input provided by user, at that instance itself? For example: I require a condition where First Name has to be a minimum of 3 characters and it cannot include numbers or any other special characters. The user cannot progress ahead unless proper input is provided. Same applies with Last Name, where it cannot include numbers or special characters & cannot proceed ahead, unless proper input is provided! Is there any way by which I could do that?
Also, some of the other attributes which I require from user, are email and mobile number. Is there any way by which I could trigger the email variant of OnScreen Keyboard, when TextField for email is triggered, and trigger the Numpad variant of OnScreen keyboard, when TextField for Mobile Number is triggered?
Also, I wanted to know if there's any way by which I could validate email address provided by user [using Regex maybe]. Like, the user cannot proceed ahead, unless proper email is provided.
Apart from that, I also require user to provide their Birth Date. Is there any proper way, by which we could provide a date-picker at certain instance in the conversation, similar to that of providing TextField?
Any help would be much appreciated!
Kind Regards,
Bhavin