I'm attempting to use a "registration code" entered during a user's registration to create an entity reference to a node with a corresponding code.
Any help is greatly appreciated.
Specific use case:
"Professor" (users) have "Classes" (nodes) that contain a text-field with a unique 5-digit code (created with Computed Field).
"Students" have a "Registration Code" field on their registration & user profile page (aka a text field on the user entity) for manually entering a 5-digit code that should "assign" them to a "Class" that has the same registration code.
I'm not a programmer, but this might make more sense:
if [Student user's 5-digit registration code] = ["Class" node's 5-digit registration code] then an entity reference is created between [student user] and ["class" node]
I'd like the rule to trigger when a user updates the registration code field.
Essentially, I'm attempting to avoid displaying Entity Reference's autocomplete widget to users.