Тёмный

Autocomplete Field on Google Web App 

Code With Curt
Подписаться 15 тыс.
Просмотров 11 тыс.
50% 1

In this video, I demonstrate how to use the JQuery Autocomplete Field within a Bootstrap Form on Google Web App. Video, Code, and Documentation can be found at codewithcurt.com/how-to-use-a...

Опубликовано:

 

22 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 20   
@carlosmolina3144
@carlosmolina3144 2 года назад
Gracias!!! desde La Rioja, Argentina!!
@jayasri-ft8040
@jayasri-ft8040 2 года назад
It's very good effort. Really is replaced for drop-down list. Very useful. Thankyou pal.
@supawadee_m
@supawadee_m 2 года назад
Thank you so much
@uni8322
@uni8322 2 года назад
Thanks for a nice video and code. Is there any way of making the drop down go up? It becomes a problem when the input element is placed at the bottom of the page.
@nazrurbustamar7206
@nazrurbustamar7206 2 года назад
Appreciate for this sharing. Is it possible after we select one option then some other fields also automatically filled? For example if we make the auto complete on "NAME" field, after selecting one name then it fills the rest of the form based on database record, lets say it is a customer database.
@annalee6590
@annalee6590 Год назад
Is there a way to hide the "terms of service" and how to make the drop down for the States?
@csvpolis1393
@csvpolis1393 9 месяцев назад
Hi thank you very much! Is it possible to apply this to a google forms text field?
@karolzinka2384
@karolzinka2384 Год назад
Hi thanks for that! :) please give me a solution how i can put in my form just state from list. at the moment i can enter state POLAND and its ok. How can i to limit this?
@josephmarpaung1110
@josephmarpaung1110 Год назад
Terima kasih.
@CodeWithCurt
@CodeWithCurt 2 года назад
AutoCompleteStyle Html Code in Video: .ui-autocomplete { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; float: left; min-width: 160px; padding: 5px 0; margin: 2px 0 0; list-style: none; font-size: 14px; text-align: left; background-color: #ffffff; border: 1px solid #cccccc; border: 1px solid rgba(0, 0, 0, 0.15); border-radius: 4px; -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); background-clip: padding-box; } .ui-autocomplete > li > div { display: block; padding: 3px 20px; clear: both; font-weight: normal; line-height: 1.42857143; color: #333333; white-space: nowrap; } .ui-state-hover, .ui-state-active, .ui-state-focus { text-decoration: none; color: #262626; background-color: #f5f5f5; cursor: pointer; } .ui-helper-hidden-accessible { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
@TECLEMAIS
@TECLEMAIS 2 года назад
Muito bom, como eu faria para plicar essa função em vários inputs?
@motatirris
@motatirris 2 года назад
Hello Thank you very much for this contribution. Can I add something to the code to restrict the response to only one of the options in the dropdown list?
@karolzinka2384
@karolzinka2384 Год назад
mam ten sam problem teraz. powiedz mi, że masz rozwiązanie :)
@CodeWithCurt
@CodeWithCurt 2 года назад
Google Apps Script in Video: function doGet(e) { return HtmlService.createTemplateFromFile('AutoComplete').evaluate(); } function include(filename) { return HtmlService.createHtmlOutputFromFile(filename).getContent(); } function AddRecord(firstname, lastname, street, city, state, zip, email) { var ss= SpreadsheetApp.getActiveSpreadsheet(); var autoCompleteSheet = ss.getSheetByName("FORM DATA"); autoCompleteSheet.appendRow([firstname, lastname, street, city, state, zip, email, new Date()]); } function getStates() { var ss= SpreadsheetApp.getActiveSpreadsheet(); var statesSheet = ss.getSheetByName("STATES"); var statesRange = statesSheet.getRange("A2:A51"); var statesValues = statesRange.getValues(); return statesValues; }
@chasdeuce5527
@chasdeuce5527 7 месяцев назад
Keep getting bullets in my drop down list.
@manojrana6723
@manojrana6723 Год назад
Hi please make a video on just fill Unique ID and then name state Address filled automatically from our given sheet
@karolzinka2384
@karolzinka2384 Год назад
you have solution?
@CodeWithCurt
@CodeWithCurt 2 года назад
AutoComplete Html Code in Video: $( document ).ready(function() { getStates(); }); function AddRow() { var firstname = document.getElementById("firstname").value; var lastname = document.getElementById("lastname").value; var street = document.getElementById("street").value; var city = document.getElementById("city").value; var state = document.getElementById("state").value; var zip = document.getElementById("zip").value; var email = document.getElementById("email").value; if(firstname != '' && lastname != '' && street != '' && city != '' && state != '' && zip != '' && email != '') { google.script.run.AddRecord(firstname, lastname, street, city, state, zip, email); document.getElementById("firstname").value = ''; document.getElementById("lastname").value = ''; document.getElementById("street").value = ''; document.getElementById("city").value = ''; document.getElementById("state").value = ''; document.getElementById("zip").value = ''; document.getElementById("email").value = ''; document.getElementById("display_error").innerHTML = "Record Added"; } else { document.getElementById("display_error").innerHTML = "Please Enter All Information!"; } } function getStates() { google.script.run.withSuccessHandler(function(ar) { console.log(ar); statesArray = []; ar.forEach(function(item, index) { statesArray.push(item[0]); }); $("#state").autocomplete({ source: statesArray }); }).getStates(); } First Name Last Name Street City State Zip Email
@StijnHommes
@StijnHommes 2 года назад
That is a website, not a web app.
@bellarina0810
@bellarina0810 2 года назад
Websites are one-way informational feeds, they do not allow viewers to interact or communicate back to the site. Web applications are websites with functionality and interactive elements. Gmail, Facebook, RU-vid, Twitter, etc. are all web apps that are dynamic, and built for user engagement.
Далее
Create Sidebar Bootstrap Form on Google Sheets
13:54
Просмотров 17 тыс.
D3 BMW XM LABEL Король.
31:52
Просмотров 691 тыс.
Tom🍓Jerry 😂 #shorts #achayanarmyfamily
00:14
Просмотров 12 млн
Tablesorter on Google Web App
15:14
Просмотров 5 тыс.
File Loader Web App to Google Drive on Google Sheets
20:41
D3 BMW XM LABEL Король.
31:52
Просмотров 691 тыс.