Masking custom field input

  • Posts: 634
  • Thank you received: 16
11 years 8 months ago #92716

Is there a way to assign an input mask for a custom field?

For example, I want a field that is always letter-letter-(automated slash)-number-number-number

like AB/998

but I want user to only introduce AB and then 998, and of course when in the number area it will only be sensible to number entry.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #92827

Hi,

By default we can't create a mask, but it's possible to achieve that by editing the view "product / show_block_custom_item".
Add a if condition to apply the changes only on the desired custom field, and add some javascript to apply a mask.

It require some php and javascript knowledges.

Please Log in or Create an account to join the conversation.

Time to create page: 0.063 seconds
Powered by Kunena Forum