code
var name = localStorage.getItem("name");
var mobile = localStorage.getItem("mobile");
return name + " " + mobile + " " + value;
/code
If you map 1-1 a UI component to service input, then you can just map the values. Nothing else needs to be done.
If you map two or more UI components to a service input, then you need to do the following (as you can't yet map two UI properties to a single input parameter).
1) On button click, save both values into local storage.
2) For service input parameter, run the code that I provided above. If you have more input fields, simply add them the same way.