Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Okay, so, the scenario is that we have a "Part" content type with the following fields:
- Manufacturer: Taxonomy term reference
- Manufacturer part number: Text
- Description: Long Text
The combination of manufacturer and manufacturer part number must be unique, as follows:
- Two products: [{Manufacturer: ABC Company, Part Number: 123}, {Manufacturer: XYZ Company, Part Number: 123}] - acceptable
- Two products: [{Manufacturer: ABC Company, Part Number: 123}, {Manufacturer: ABC Company, Part Number: 456}] - acceptable
- Two products: [{Manufacturer: ABC Company, Part Number: 123}, {Manufacturer: ABC Company, Part Number: 123}] - not acceptable
How do I accomplish this? I tried Unique value on multiple fields
configured on both the manufacturer and manufacturer part number fields (with the same group ID) but that didn't seem to do anything.