I need to create a web app which will read my google spreadsheet column and also record if the action is taken referencing to that cell.
I have six columns: Sr. No. | Emp ID| Phone Number | Card Issued | Date of Issuance | Issued By.
I want a search field in the app where user can enter employee id and if it is mentioned in the list then app should proceed, else error "can't find".
If it is mentioned in the list, user will click on a button such as "Submit", and the details such as YES in Card issued, Date of issuance and in Issued By - email id should be automatically updated. This link should have access to all the users of specific domain and not public.
I have tried many codes available on many websites but I'm unable to get through it. I'm badly in need to complete this. Any help will be appreciated.
Here's my sheet: https://docs.google.com/spreadsheets/d/17ctc5KUeg8qzWN3CD442cSVYpT1gjG4L_6AsBffnhes/edit?usp=sharing
I need something like the attached picture.
This will give you a start. With a little effort on your part you should be able to complete the rest on your own.
To run this you will need to:
Copy code to script editor using the given files names. Save them. Run the showEmployeeSearchDialog() function and that will launch the html. As you progress you should be able to add a doGet function and deploy as a webapp.
Code.gs:
empsearchform.html
Here's what the dialog looks like at the present: