How can i make a rule that search for the same content for the same field.
Example: User 1 and user 2 fills both the same form/node.
User 1:
Field A: XXX
Field B: YYY
User 2:
Field A: XXX
Field B: ZZZ
I want a warning that says that XXX already exists.
Comments
Comment #1
mitchell commentedMy buddy coded an action just like this, which I think would allow for that. ie: when content is going to be saved, load content by arbitrary field with entered value, if content loaded successfully, don't save the node and show an error. It wasn't 100% reliable and kinda hackish, so please don't hold your breath for some amazing, bug free code. I hope to get it posted though, even if it doesn't get committed.
Comment #2
mitchell commentedI think EFQ supports this. In general, it would be nice to have some query builder interface for operations like, starts with, ends with, and other data manipulations.
Disregard #1.
Comment #3
tr commentedWon't do this in D7 at this point in time. If there's interest in doing this in D8/D9 please open a new issue and provide a patch.