So in my application, a user can create a “Company” (Custom datatype) and modify various fields belonging it. I want a new user to register, and input a “Company ID” which will grant them access to the company information and rest of the pages if the input ID matches an existing ID.
I’m having trouble connecting users to an existing company. This is what the post-registration page looks like
I want to make ‘This User’s Company = Company where Company ID = Input Company ID’ but I’m having trouble.
This is what I’m attempting but have errors every time
Any help or suggestions? Thanks