This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



May 18, 2011, 1:42 PM
66 Posts

Input Converters

  • Category: Other
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 2
I'm trying to setup an input converter that will change inputted data (e.g. 1234123412341234 --to--> 1234-1234-1234-1234) on the fly when entering data into a field. I know there are mask converters, but I believe this only takes effect with submitted data? Has anyone found an easy way to go about this with XPages?
May 23, 2011, 8:46 AM
7 Posts
Re: Input Converters
Ryan,
Convertors are used to convert front-end input into the back-end data (and the other way around).
The easiest way, I guess, is to use client-side JS on one of the events of the field (onkeypress, onkeyup, onblur).
Pascal
May 23, 2011, 3:18 PM
66 Posts
Re: Input Converters
Thanks for the tip. I ended up using a jQuery solution: http://digitalbush.com/projects/masked-input-plugin/

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal