Add minimum length check to Item's custom field

  • Posts: 253
  • Thank you received: 24
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
11 years 5 months ago #150122

Is there a way to add a minimum field length check (Ajax or otherwise) to custom text field?

I'm thinking it might involve a custom view but I do not want it on every item in the catalog.

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

  • Posts: 84290
  • Thank you received: 13691
  • MODERATOR
11 years 5 months ago #150171

There is no option for that in HikaShop, so yes, that will require some custom javascript added to the custom field.
You'll want to edit the file "show_block_custom_item" via the menu Display>Views in order to add your code there.
If you don't want it for all the products, simply add a check there (for example on a custom product field value).

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

Time to create page: 0.052 seconds
Powered by Kunena Forum