CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Civicrm Event Field input mask
Pages: [1]

Author Topic: Civicrm Event Field input mask  (Read 1241 times)

jzimmer12

  • Guest
Civicrm Event Field input mask
April 26, 2010, 06:43:16 am
Hello,


In setting up custom data fields, is it possible to make it so the field is set up to accept a formatted input (i.e. a social security must be put in ###-##-####, or a credit card must be ####-####-####-####)

Thank you

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Civicrm Event Field input mask
April 26, 2010, 07:12:45 am

No

But you can use a validate hook to ensure that the social security is a 8 digit number and credit card is 16 digits etc

you might be able to do the "formatted input" via javascript in the template?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Civicrm Event Field input mask

This forum was archived on 2017-11-26.