Add Unique ID to Google Forms Confirmation Message:GAS080

Поділитися
Вставка
  • Опубліковано 12 вер 2024

КОМЕНТАРІ • 91

  • @vrm2009
    @vrm2009 Рік тому +8

    Thanks Ashton! Very useful tutorial and just what i was looking for.
    Quick tip for anyone who is unable to get this to work, its likely you missed an important step of "setting up a trigger"
    1. In the "Appscript" window, you will see a left panel where the third from top would be a "clock" icon
    2. Click the "clock" icon and on this window, create a new trigger
    3. In the popup, leave all default values except for the last drop-down "Select event-type" = "On form submit"
    4. Click save
    Now, submit response on google form and you should start seeing the UID_Header field getting populated with IDs. Good luck!

    • @SabbirHosen-re4lo
      @SabbirHosen-re4lo Рік тому +1

      Thank you so much, really this is the important step that was missed in this video and i have lost so many time for searching it. Finally i found your comment and fix my problem, thanks again!

    • @fasikagh6192
      @fasikagh6192 5 місяців тому

      Thank you so much

  • @kuhannagalingam8703
    @kuhannagalingam8703 2 роки тому +2

    It's working, need to set up Triggers and type UID0001 in confirmation message

  • @nikosthalassinos9524
    @nikosthalassinos9524 Рік тому

    Thanks Ashton, amazing Job!

  • @moapguide
    @moapguide Рік тому +1

    sometimes it is not giving uid number just skipping the number kidly help me y

  • @whatelsewouldyoudo
    @whatelsewouldyoudo Рік тому +1

    Thanks for this. I Tried it on one of my forms and it generates the same UID number for every entry. It doesn't change at all. How do I fix it?

  • @pphscgh2741
    @pphscgh2741 2 роки тому +1

    I'm having trouble with the script. The UID does not seem to increment.

  • @alajlan2012
    @alajlan2012 Рік тому

    very nice work! thanks a lot my dear

    • @crazyghost1277
      @crazyghost1277 Рік тому

      did u get it to work?

    • @alajlan2012
      @alajlan2012 Рік тому

      @@crazyghost1277 yes and it worked properly, thanks mate!

  • @escapepeterpan
    @escapepeterpan 3 місяці тому

    It works! thanks so much

  • @md.zahangiralam1562
    @md.zahangiralam1562 9 місяців тому

    Thanks Boss (Ashton)

  • @alcsupport4207
    @alcsupport4207 2 роки тому

    Hi Ashton! Thanks so Much for this! Really Helpful! Can you write a script to also trigger a What's app Message with Form Summary?

  • @reusril2086
    @reusril2086 Рік тому

    Thank you for this

  • @jaykumarshah5817
    @jaykumarshah5817 10 місяців тому

    I am getting this error eventhough I have added UID00001 in confirmation meassge."No UID found in the current confirmation message with regex"

  • @predatorx2011
    @predatorx2011 Рік тому

    You are my god

  • @blaxc
    @blaxc 3 місяці тому

    Form submission doesn't trigger the function. Is it needed to create a trigger function for form submission?

    • @ashtonfei
      @ashtonfei  3 місяці тому

      Yes, a trigger has to be created to run the script for updating the confirmation message so the next ID can be shown for the next response.

  • @nurasian7355
    @nurasian7355 3 роки тому

    Thank you so much.

  • @digitalmarketing1967
    @digitalmarketing1967 2 роки тому

    i want to apply this script in form which have already made in previous . but it is not worked . please help.

  • @mohamedadel3618
    @mohamedadel3618 2 роки тому

    Thanks for the video, can you upload another video to show to connect to the sheet with the script please, or any other video show how to connect

  • @shree12333
    @shree12333 Рік тому

    I have one scenario where in sheet i have two columns - one is containing Id and other is containing Name . So in google form , If I select ID in one field then wanted name in next field automatically and in disabled mode

  • @digitalmarketing1967
    @digitalmarketing1967 2 роки тому

    i have create new script and pasted the code. also i have editing response section in google form . also i have give header name as same as in my google sheet. assigned trigger for that. but at last trigger show 100% error. i am very upset to do that after doing lot of time... help???? what i can do now...???

  • @graysonlofstad9916
    @graysonlofstad9916 2 роки тому

    How can i properly adapt the script into my own work? im having alot of trouble trying to adjust it

  • @nbchannel8480
    @nbchannel8480 2 роки тому

    Thanks so Much

  • @varshiniratnaraja4682
    @varshiniratnaraja4682 3 місяці тому

    thank you Brother

  • @chrisjansumayang1743
    @chrisjansumayang1743 2 роки тому

    What if the same person submitted again? Is it possible to get the previous ID the person had?

  • @presenterpk
    @presenterpk 3 роки тому

    AMAZING AND THANKS
    DEAR ASHTON,
    IS IT POSSIBLE TO SHOW THE CITY NAME (OR ANY ELSE FILED) IN THE CONFIRMATION MESSAGE AFTER SUBMISSION.

    • @ashtonfei
      @ashtonfei  3 роки тому +1

      Sorry, I have to say not possible. The confirmation message is updated before the user submits the form. We can’t predict user’s input when we update it.

    • @presenterpk
      @presenterpk 3 роки тому

      @@ashtonfei THANK YOU
      CAN SHOW CURRENT DATE AND TIME ?

    • @ashtonfei
      @ashtonfei  3 роки тому +1

      @@presenterpk the same, you don’t know when the user will submit it.

    • @presenterpk
      @presenterpk 3 роки тому

      @@ashtonfei THANK YOU,
      YOU ARE DOING A GREAT JOB. I LEARNT A LOT FROM YOU.

  • @MrLococaco
    @MrLococaco 3 роки тому

    Thanks!!

  • @adelekerahamon3565
    @adelekerahamon3565 5 місяців тому

    Thanks a lot

  • @dimitrisvoudouris
    @dimitrisvoudouris 3 роки тому

    Very nice

  • @octaviri7137
    @octaviri7137 8 місяців тому

    Thank you

  • @bustermika18
    @bustermika18 Рік тому

    Can you advice me on how to set up the email for this please? can someone share the link?

  • @Matthew-vi9wh
    @Matthew-vi9wh Рік тому

    anyone know if there is a way of getting the id to display on the form?

  • @manishgupta9347
    @manishgupta9347 Рік тому

    Dear Sir how to use multiple Google form Unique ID in one google sheet

  • @googlesheetautomation3573
    @googlesheetautomation3573 3 роки тому

    Top

  • @dgprajesh
    @dgprajesh 5 місяців тому

    from where to get the code

  • @laceyruffino9238
    @laceyruffino9238 2 роки тому

    I'd like to also have the ID display in the email subject line for each submission so I can easily find unique submissions when searching my inbox. Can this be done or at least how do I get the ID in the email so I can search for that specific submission? We currently receive submissions to our email inboxes and then respond to customers from there so having this ID in the subject line is ideal. Do you have a video on that?

    • @ashtonfei
      @ashtonfei  2 роки тому

      Yes, Lacey. That’s possible with a script to handle the id generation and email notification. We can customize email subject and body.

    • @jarosawj7061
      @jarosawj7061 2 роки тому

      @@ashtonfei Hello Ashton. Your work is great. I need a handle for the UID that I paste into an automated email. I have tried many ways. Unfortunately, the email does not display the correct UID or none at all. Thank you very much for your help!

    • @WheelandSprocket
      @WheelandSprocket Рік тому

      @@ashtonfei Are you able to define how to do this?

  • @robertdevadason1885
    @robertdevadason1885 2 роки тому

    the script seems to be having issues when I used it for a form that is linked in a spreadsheet that has multiple forms linked to as well...any tips?

    • @ashtonfei
      @ashtonfei  2 роки тому +1

      Yes. That could happen, I need to review this issue.

    • @robertdevadason1885
      @robertdevadason1885 2 роки тому +1

      @@ashtonfei i managed to use a switch with case in the onFormSubmit function to solve this...created separate class for each form based on your sample...but it runs to an error after trying to submit both the forms....im guessing the const clashes, since i just duplicated the class amd renamed them but left the const the same

    • @robertdevadason1885
      @robertdevadason1885 2 роки тому

      @@ashtonfei what should I pay attention to if i get this error? - "No UID found in the current confirmation message with regex.."
      I am using 2 forms linked to the same sheet, when the first form is filled up, it runs successfully, but when the 2nd form is filled, this error pops up

  • @mohinenterprise9592
    @mohinenterprise9592 11 місяців тому

    56,65 error unfilled problem

  • @emilybailey2725
    @emilybailey2725 3 роки тому

    I keep getting an error in line 12 and 31; "there is no linked form in this spread sheet" and "No UID found in current confirmation message with regex". Has anyone else experienced this or know how to fix it? Thank you!

    • @ashtonfei
      @ashtonfei  3 роки тому +1

      Hi Emily
      You saw this error because the form was not connected to the spreadsheet and you didn't compose a confirmation message (or there is no initial id in the message, like UID-00001).

    • @mohamedadel3618
      @mohamedadel3618 2 роки тому

      @@ashtonfei please we need o more video to show to connect and compose a confirmation message, this subject is very important . Thank in advance

  • @sabirrehman8733
    @sabirrehman8733 10 місяців тому

    Is it possible for Microsoft Form?

  • @koungsareth8623
    @koungsareth8623 3 роки тому

    Very much thanks. Please, explain the script more than template.

  • @mohinenterprise9592
    @mohinenterprise9592 11 місяців тому

    please sir mail sent script text derails

  • @therisegtef
    @therisegtef 5 місяців тому

    Excellent one Ashton! Thank you...However the functionality to email the response back with the same "Unique ID" to the responder is not covered.

  • @tahamintahi6227
    @tahamintahi6227 4 місяці тому

    your source code doesn't work

    • @ashtonfei
      @ashtonfei  4 місяці тому

      What's error message did you get?

  • @shree12333
    @shree12333 Рік тому

    I cant see script option in tools

    • @ashtonfei
      @ashtonfei  Рік тому +1

      It's been moved to "Extensions" now.

    • @shree12333
      @shree12333 Рік тому

      @@ashtonfei Thank you so much

    • @user-of8ue6ep7s
      @user-of8ue6ep7s Рік тому

      @@ashtonfei I'm lost! please help me. I can't find it

    • @ashtonfei
      @ashtonfei  Рік тому

      @@user-of8ue6ep7s You can't find the script menu? It's under menu Extentions > Apps Script.

  • @user-vx3bj9dn6b
    @user-vx3bj9dn6b 10 місяців тому

    Can somebody send the code?

  • @michaelvanzyl1831
    @michaelvanzyl1831 10 місяців тому

    Good day - my code runs to line 55 and 65 and errors out ?
    Error
    TypeError: Cannot read properties of undefined (reading 'range')
    run @ Code.gs:56
    _onFormSubmit @ Code.gs:65
    What could it be ?

  • @tranquilmagister8481
    @tranquilmagister8481 2 роки тому

    I get the error:
    TypeError: Cannot read property 'getSheets' of null
    getLinkedSheet @ Code.gs:24
    App @ Code.gs:10
    _onFormSubmit @ Code.gs:65
    I have connected the the google sheet to the form but something is null?

    • @tranquilmagister8481
      @tranquilmagister8481 2 роки тому +1

      nvm i found the error, i tried to trigger it through he form instead of the sheet. And this kids is why i is important to listen to teacher :P

    • @ashtonfei
      @ashtonfei  2 роки тому

      This is how we learn from the errors. 😀

    • @clemersonb
      @clemersonb 7 місяців тому

      @@tranquilmagister8481 hello!
      I get the same error:
      TypeError: Cannot read property 'getSheets' of null
      getLinkedSheet @ Code.gs:24
      Application @ Code.gs:10
      _onFormSubmit@Code.gs:65
      How did you fix it, can you explain please?

  • @catafest-work
    @catafest-work 3 роки тому

    Thank you for share. Can this use this form in the mail not into doc.google.com area?

    • @ashtonfei
      @ashtonfei  3 роки тому +1

      Sorry, not quite sure about your question.

    • @catafest-work
      @catafest-work 3 роки тому

      @@ashtonfei ... the idea is to create a form into a mail and sent it to user. The user fill the form in that mail and send these infos to the excel area. Can you solve this issue?

    • @ashtonfei
      @ashtonfei  3 роки тому

      @@catafest-work GAS-061 Embed Prefilled Form to Gmail ua-cam.com/video/dUGDwNoMHcs/v-deo.html

  • @LP-ig8tg
    @LP-ig8tg 2 роки тому

    TypeError: Cannot read property 'range' of undefined
    run @ Code.gs:56
    _onFormSubmit @ Code.gs:65
    in short issue with run(e) AND _onFormSubmit Event

    • @ashtonfei
      @ashtonfei  2 роки тому

      You can not run this function manually. The event object is assigned only you bind a form submit event to call it. Or the event is undefined and you see the error.

    • @ayah8j
      @ayah8j 2 роки тому

      I have same problem

    • @winsupermarket3003
      @winsupermarket3003 2 роки тому

      @@ashtonfei So how shall we solve it?

    • @ashtonfei
      @ashtonfei  2 роки тому

      @@winsupermarket3003 you need to create a new submission from the form to test the function. The submission will trigger the function _onFormSubmit, and an event object is passed there.

    • @MrCarolciciliato
      @MrCarolciciliato Рік тому

      I am also getting the same problem. Can you please help? I followed exacly the steps. Created a forms, create the app scrip... =/ does not work

  • @safaltammewar4233
    @safaltammewar4233 Рік тому

    getting onformsubmit e undefined

    • @ashtonfei
      @ashtonfei  Рік тому

      you can not run the function manually, the e is undefined when you run it manually. It has to be triggered by a form submission.

    • @safaltammewar4233
      @safaltammewar4233 Рік тому

      @@ashtonfei yes i triggered the form but now e.range is undefined . I have tried to debug event object but not seeing any range property

  • @hemanthaak5015
    @hemanthaak5015 2 роки тому

    TypeError: Cannot read property 'range' of undefined
    run
    @ code.gs:57
    _onFormSubmit
    @ code.gs:66

    • @ashtonfei
      @ashtonfei  2 роки тому

      _onFormSubmit function should not be executed manually from the script project, it works only when called by a form submit event.

    • @hemanthaak5015
      @hemanthaak5015 2 роки тому

      @@ashtonfei when submit form it will not reflect or any changes id in confirm Page

    • @marvinmarasigan1949
      @marvinmarasigan1949 Рік тому

      @@ashtonfei Same on my end. The UID does not generate in the response sheet after submitting a response.

  • @muhammedaadhil5645
    @muhammedaadhil5645 3 роки тому

    Thank you 😊