Trying to save data from active UI build in GUI back to spreadsheet. But cannot figure out how to retrive string value from text box in the UI. This is what I’m trying to do:
function saveChanges() {
var Text;
var Location;
var app = UiApp.getActiveApplication();
Text = app.getElementById('CompanyLegalNameTextBox').getText();
Location = "C3";
SpreadsheetApp.getActiveSheet().getRange('Location').setValue('Text');
}
Getting error: TypeError: Cannot find function getText in object Generic.
Thank you si much for your help in advance!
This is clearly explained in details in the UI App documentation, please read it before asking.