
The MySQL auto_increment_increment variable determines how many digits to jump for each successive auto_increment value. However, sites that use database replication as a backup strategy (is my case) often will have non-sequential ids, meaning that you could see nids jump by two or more digits. If the two modules are incompatible, that's a bug. I don't think you are interested to such limited case. Discover 1000s of premium WordPress themes & website templates, including multipurpose and responsive Bootstrap templates, email templates & HTML templates. I found a way to verify if the value of a field is unique, but it's usable only if the field contains a reference to an entity.
#DRUPAL RULES UNIQUE VALUE SERIAL#
You can see this if you visit your site by the node ID path: Is there a way to limit to unique I saw a Unique field module, but it's old and not covered by security policy ( ). Actually is a string which act as a serial number. I don't find the right condition to check if the value of the field is A or B.

Rules Forms - Provides a Rules based method for controlling forms and their elements.

The problem with these solutions is that they use the MySQL auto-increments.ĭrupal, by default, auto-increments the node ID (nid) and other IDs by one digit for each piece of content you create. Surprisingly I can't find the answer for this question on previous posts, so I ask here: I want to create this rule: When a node is created and one of its field has value A or B (on 3 possibilities), then create a message. Rules list conditions - Allows checking condition (s) on list items, evaluating to TRUE if either 'any' or 'all' items match the condition (s) Views Rules - Provides Views directly as Rules actions and loops to seamlessly use view result data. Use the node id that is unique and auto-increment.I have a content type that in one of their fields need a value that is unique and auto-increment.
