Hello, i am newbie on ChronoForms. I want to learn how to do field format masks.
ie. Telephone:[ (212) 555-6341 ] *Please fill only with numbers
I will set the field to accept only numbers.
the user fill the field with: 2125556341 and the data will be stored (212) 555-6341
How can I do this
Thank You All
Clovis
ie. Telephone:[ (212) 555-6341 ] *Please fill only with numbers
I will set the field to accept only numbers.
the user fill the field with: 2125556341 and the data will be stored (212) 555-6341
How can I do this
Thank You All
Clovis
Hi Clovis,
you may try to run some PHP code to do the formatting during the onsubmit phase, example:
don;t try this with RC3 because it will not work!
Regards
Max
you may try to run some PHP code to do the formatting during the onsubmit phase, example:
<?php
$mynewdata = JRequest::getVar('fieldname');//you need to do some PHP function to format the data here
JRequest::setVar('fieldname', $mynewdata);
?>
don;t try this with RC3 because it will not work!
Regards
Max
Hi Max, i couldnt understand how to use your suggestion, but i found this script that help me.
http://javascript.internet.com/forms/dfilter.html
I hope to help others too.
Thankyou
http://javascript.internet.com/forms/dfilter.html
I hope to help others too.
Thankyou
This topic is locked and no more replies can be posted.