Moodle 3.10 Save user ids using tags(autocomplete) when its saved, and load to the tags when it is edited

Job ID: 31618761

Budget: $10 – $30 USD

I stuck with a task in my local plugin.
I have a form(create_form.php) which contain an autocomplete form element type, name is userids.
I need to save the selected userids to the db(local_rf_tasks).
local_rf_tasks table has the following fields:
id
task_id(created when the create form submitted)
clerk_id(which is one of the selected user id)

on the edit_form.php i want to load the saved userids to the autocomplete, so when its removed its removed from the local_rf_tasks table, when new user added its saves to local_rf_tasks table

Probably it is a simple solution so my initial offer is 30euro
Related categories: PHP Software Architecture MySQL Moodle