I just created a custom edit form for a list in SP Designer from a task list, i created 3 more taskoutcome options and a button for each option, one of them only edit the assigned to field and update the list for CSOM, the problem is that I couldnt get the user ID for the person picker with JavaScript to send an update to the task list.
In dev tools all the info appear in a div with a data attributte ArrayOfDictionaryEntry
where the user id appears, I just tried to retrieve it like this:
//only dataset because is <div data="info">
getElementsByTagName("DIV").dataset
how can I get the user id from the person picker to send an update to list?