Hi. Have looked at the demos, very useful but I'm now stuck.
I have a data table #__authorised_managers. Fields are id, name, email, jobtitle.
I have a read data action with a model name Manager. This works and I have a table list that shows all entries.
I then have a dynamic dropdown using this Model and that populates fine. It's using {var:Manager.name} as value and text.
What I want to achieve is selecting the manager from the dropdown will auto populate text fields for name, email and job title so that they can be saved when the form is submitted. I want a free text option incase the manager isn't listed.
Putting a text field in with a value {var:Model.email} only returns the email field from the last row of the database. I don't think I'm doing this correctly. By default I'd like the field blank and only populated when the dropdown option is selected and updated if this is changed.
Any help appreciated.
mark
Updated 24/02/21
Followed the connected dropdown demo.
Added standalone page manager_details with a single action RefreshManager to read the database again (model ManagerDetails) with a where condition
id = {data:id}
Then added a refresh on the text field to refresh if the dropdown changes and reload this standalone page. The value for the text field is {var:ManagerDetails.email}
Still nothing is displayed.
I have a data table #__authorised_managers. Fields are id, name, email, jobtitle.
I have a read data action with a model name Manager. This works and I have a table list that shows all entries.
I then have a dynamic dropdown using this Model and that populates fine. It's using {var:Manager.name} as value and text.
What I want to achieve is selecting the manager from the dropdown will auto populate text fields for name, email and job title so that they can be saved when the form is submitted. I want a free text option incase the manager isn't listed.
Putting a text field in with a value {var:Model.email} only returns the email field from the last row of the database. I don't think I'm doing this correctly. By default I'd like the field blank and only populated when the dropdown option is selected and updated if this is changed.
Any help appreciated.
mark
Updated 24/02/21
Followed the connected dropdown demo.
Added standalone page manager_details with a single action RefreshManager to read the database again (model ManagerDetails) with a where condition
id = {data:id}
Then added a refresh on the text field to refresh if the dropdown changes and reload this standalone page. The value for the text field is {var:ManagerDetails.email}
Still nothing is displayed.