Hi, 
We have a custom app to be able to create product types. 
Inside a product type the user is able to create fields that can be text, 
option or checkbox ones (actions in actionbar for each field type).
Then we have a product catalogue (another custom app). Each product in this 
catalogue is of certain product type (created with the other app mentioned 
above). 
To index the products we are using Solr. 
We would like to have a validation on save action of a field in product type 
application when a new field (text, option or checkbox) is created. This 
validation aims at checking that if there is already a field created in the 
workspace with the same name that it is of the same type (text, option or 
checkbox) for solr integration and indexing to work properly. If it is not then 
we should prevent the user to create the field. 
Our thought is to create a custom save action, to do the check mentioned above 
inside it. In case it fails then we do not know :
- how to make the validation failed
- and how we can show to the user an error message saying that there is already 
a field with the same name created for another product type that is not of the 
same type and so that they should change the name?
Thanks in advance for your help. 
Kind regards, 
Sandra

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=9d0b2675-9dce-4e14-b262-989e938a8526


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to