Codigo GS & HTML Trabajando Din Control
Codigo GS & HTML Trabajando Din Control
Codigo GS & HTML Trabajando Din Control
*********************************************************************
function showUserForm(){
function appendData(data){
var ws = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Data");
ws.appendRow([data.name,data.phone]);
<body>
<div class="container">
<div class="row">
<div class="input-field col s12">
<i class="material-icons prefix">account_circle</i>
<input id="username" type="text" class="validate">
<label for="username">Tu Nombre + AP PATERNO+AP MATERNO</label>
</div>
<div class="input-field col s12">
<i class="material-icons prefix">phone</i>
<input id="tel" type="text" class="validate">
<label for="icon_telephone">Telefono</label>
</div>
<div class="input-field col s12">
<button class="btn waves-effect waves-light" id="btn">Add
<i class="material-icons right">send</i>
</button>
</div>
</div><!--END ROW-->
</div>
document.getElementById("btn").addEventListener("click",addRecord);
function addRecord(){
var name = nameBox.value;
var phone = phoneBox.value;
var data = {
name: nameBox.value,
phone: phoneBox.value
};
google.script.run.appendData(data);
nameBox.value = "";
phoneBox.value ="";
}//close else
}//close addRecord
</script>
</body>
</html>
************************************************************************
https://www.youtube.com/watch?v=PsIuSwSj3CM
ETIQUETAS