I have a child record called customers.
So when I create a new Customer, it's a form with a few text fields and one dropdown tree structure that lists all possible Companies that a new Customer might belong to.
Sometimes, when creating a new Customer midway through the form, the user realizes they need to create a new Company.
Creating a new Company is a form that requires at least filling up 3 fields in a new form.
How do I elegantly design the user flow?
In the first place, the only form to create new Customer is a modal dialog popup.
My options are:
- have a link next to the Companies dropdown that says
or Create New Company
and this link opens a new tab to the standard Create new Company form. When the user is done, they need to go back to the previous tab and then press refresh so that the dropdown will load the new Company - have a link next to the Companies dropdown that says
or Create New Company
and this link opens a modal on top of the original modal. This new modal is to create new Company and when they press submit for new Company the old modal comes back with the dropdown preselecting the newly created company. - inside this modal for creating new Customer, I have 2 horizontal tabs. 1 for creating new Customer and 1 for creating new Company. The dropdown is always polling the server side for Companies thus ensuring the dropdown is always up-to-date.
- Others?
The frequency of adding new Company will be high at first. As time goes by, the frequency will drop.
Let's assume high frequency.