kmfabercreative
Member
Hi there,
I need to create a form that allows a user to submit data through. There are a couple of fields that should pre-populate based on the selection a user makes from a select / dropdown field.
I have a "client" list / table setup and populated; it contains fields such as "name", "email", "id", etc.
Basically, I need to be able to select an option from a dropdown field in a form. The dropdown field will pull from the "client" table using the "name" of the client as the values of the dropdown.
I also need to pre-populate a "field" field in the form for the email of the client. This is where I'm running into a roadblock.
How I have it setup is as follows:
1. Client table with the following fields: id, date time, account status (active or not = 1 / 0), account id (custom account id number), account number (custom account number), account name, title, first name, last name, email.
2. Issue table / form with the following fields: id, date time, company select (dropdown), company name, company email, issue text area
3. I had to pre-populate the "Company Select" dropdown with the account name from the "Clients" table. I did this via the DB Join element, set to be a "dropdown" field.
4. I needed to populate the "Company Name" field based on the company selected from the "Company Select" field. This worked easily enough using the JS plugin on the "Company Select" field and just inserting the value of the selected company as the value of the "Company Name" text field.
5. I also need to populate the "Company Email" field with the email of the company that's located in the "Clients" table.
However, doing this is where I hit the roadblock...
I haven't figured out how to load multiple sets of data from a table?should this be done as a join in the list? Or as how I'm doing it with the elements? As I mentioned, I was able to pretty easily set up doing it for one piece of data, but how do you do it for multiple?
Any further info you'd like me to provide, let me know. I appreciate your help
Thanks much!
Cheers
Kyle
I need to create a form that allows a user to submit data through. There are a couple of fields that should pre-populate based on the selection a user makes from a select / dropdown field.
I have a "client" list / table setup and populated; it contains fields such as "name", "email", "id", etc.
Basically, I need to be able to select an option from a dropdown field in a form. The dropdown field will pull from the "client" table using the "name" of the client as the values of the dropdown.
I also need to pre-populate a "field" field in the form for the email of the client. This is where I'm running into a roadblock.
How I have it setup is as follows:
1. Client table with the following fields: id, date time, account status (active or not = 1 / 0), account id (custom account id number), account number (custom account number), account name, title, first name, last name, email.
2. Issue table / form with the following fields: id, date time, company select (dropdown), company name, company email, issue text area
3. I had to pre-populate the "Company Select" dropdown with the account name from the "Clients" table. I did this via the DB Join element, set to be a "dropdown" field.
4. I needed to populate the "Company Name" field based on the company selected from the "Company Select" field. This worked easily enough using the JS plugin on the "Company Select" field and just inserting the value of the selected company as the value of the "Company Name" text field.
5. I also need to populate the "Company Email" field with the email of the company that's located in the "Clients" table.
However, doing this is where I hit the roadblock...
I haven't figured out how to load multiple sets of data from a table?should this be done as a join in the list? Or as how I'm doing it with the elements? As I mentioned, I was able to pretty easily set up doing it for one piece of data, but how do you do it for multiple?
Any further info you'd like me to provide, let me know. I appreciate your help
Thanks much!
Cheers
Kyle