sendgrid adding input fields
You need to read the mobile value from local storage here:
code
var name = localStorage.getItem("_name");
console.log (name + " " + value);
return name + " " + value;
/code
Also, when you set the local storage on button click, first set all values then invoke the service.