masking character "_" also included in database
Hi,
I have a problem with data mask.
I have put the data mask format: data-inputmask:'mask': '99999999999'
means user can enter their phone number in 10 or 11 characters.
But when user enter 10 character, I will received the data input mask character "_" inside my database.
How can I exclude this character during submission.


I have a problem with data mask.
I have put the data mask format: data-inputmask:'mask': '99999999999'
means user can enter their phone number in 10 or 11 characters.
But when user enter 10 character, I will received the data input mask character "_" inside my database.
How can I exclude this character during submission.
Strip it out using PHP.
$this->data("nombor_telefon_bimbit3", preg_replace("/[^0-9]/", "", $this->data("nombor_telefon_bimbit3", "")), true);
thanks for the reply..
this code I need to put inside the Submit event in Setup page right.?
this code I need to put inside the Submit event in Setup page right.?
Yes. And don't copy paste it type it out manually.
This topic is locked and no more replies can be posted.