Forums / Developer / Unique values at attributes

Unique values at attributes

Author Message

Jorge estévez

Tuesday 09 March 2010 8:33:01 am

Hello to all,

How to make a unique data entry for an attribute while creating/populating an object in de admin site?

 

I would like that when the user adds a attribute “Product-Code” that is already taken “something” will tell him that the code is already used and that he is making a mistake or not to let him add the code.

 

Please take into consideration that the site is built with ezpublish 3.10.0 so extensions for older versions of the site will not work. Anyway if you could point out some code I an reuse, go ahead!

 

thanks

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Jean-Luc Nguyen

Wednesday 17 March 2010 7:20:42 am

Hello there,

You could use jQuery module call to check if a product reference is already in the DB when the user is editing the reference attribute.

This could be done by calling a custom JS on backend that calls a check module.

http://www.acidre.com