I have been working on a project for my company and have run into an issue that does not allow me to assign a parent entity to new users.
I am hoping to sign up new users that will use the platform, and then use the sign up form to automatically assign them to their respective company.
The user and company have a one-to-many relationship.
I have attached two images- one that shows how I can select it in the database of Adalo, and the other in the action that does not allow me to select one.
I can get it to work where the user can select a company just fine. I am hoping to have it automatically selected, as some part of the software is client facing in which they should not see other options.
Do you have any ideas of how this could be done? I am also struggling to set the default value of a dropdown for this same scenario (was hoping I could set a default value and then just hide it on the page).
Just manually, since there is only a few that I have to worry about and its pretty much just a login page. I would be (hopefully) duplicating the same page and just changing the name and default company value.
If you have a list of companies, you can create a URL parameter and tie that to the user.
like you could have something like “yourwebsite.com/?company=company-name” that would direct them to a signup form where that company is the default selected. It would be the “Current Company” on the screen.
You would only need 2 screens for this. A loading screen set as the “login” screen so that the users land there first, and then the actual login screen with the form.
The loading screen would contain a countdown timer within a list of companies that match the input that you update with the javascript component.