Getting the member name and send it to a dataset

Hello.

You need to use a temporary variable to store the value of your variable instead if trying to pass it to an input element and then retriving it.

let name;//This declaration should be on top of your code panel

name = results.items[0].name;

"attorneyName": name, 

Good luck!