I have 2 inputs:
- “item name”
- “item number”
At the moment when button “save” is pushed, a new item is created with 3 fields: 2 filled by the 2 inputs. and another field has the “current user” added (this field is a list of all the users having the same item)
the problem is that I want this to happen just in case there isn’t already a item with the same “item number”.
If the item with the same number already exists, I just want the “current user” to be added to the list, and “item name” field to be filled if it was empty in original data.