Re: applicant tracking system
Reply #3 –
@ayilmaz you could use the Page Event to achieve that.
1. Disable the other fields like phone numbers, addresses from Add page.
2. Set the field where you want to select the user id to select.
3. On Action Before Add make a query to get the details from your database table.
4. Pass the values gotten from your database to your fields to the model data fields and you are done.
Example:
//query the database and return a single row
$db->where("id", $modeldata['client_id']);
$client = $db->getOne("clients");
$modeldata['phone_number'] = $client['phone'];
$modeldata['address'] = $client['address'];