What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    Error upon form submission: "Error refreshing the OAuth2 token..."

    Asked by Brunox13 on March 30, 2015 at 06:54 PM



    The form used to work perfectly and I received more than 80 submissions - but now suddenly, the following error message appears when the "Submit" ["Odeslat"] button is clicked, instead of the usual "Thank you" message.


    Error refreshing the OAuth2 token, message: '{ "error" : "invalid_grant", "error_description" : "Token has been revoked." }'


    The submission then successfully appears on the JotForm website, but no e-mail notification is sent and no submission is added to either Google spreadsheet or Google Drive (in the form of PDF).

    What is the problem?? Could it be fixed, please?



    Page URL:

  • Profile Image

    Answered by Brunox13 on March 30, 2015 at 07:28 PM

    OK, I can see that other people have the same problem as well - this seems to result from lost connection between the form and the authorized Google spreadsheet/folder as a result of moving/renaming the target spreadsheet/folder in Google Drive.

    I removed the Google Drive integration, re-linked it and now it works fine again.

    This problem, however, was caused by the fact that during the creation of the Google Drive spreasheet/folder integration, it is not possible to select one's own destination folder.

    Therefore, I would like to request that the possibility to choose the Google Drive destination folder during the integration process/afterwards be added. Thank you.

  • Profile Image
    JotForm Support

    Answered by jonathan on March 30, 2015 at 09:10 PM

    You can do assign or set a custom folder name where the submission will be uploaded in the Google Drive integration.

    Please check the user guide -How-to-Integrate-a-Form-with-Google-Drive



    Please let us know if this was not what you meant.


  • Profile Image

    Answered by Brunox13 on March 30, 2015 at 11:10 PM

    I understand that, but that doesn't do much.

    I would rather pick an already existing folder in my Google Drive.

    Just creating and integrating multiple JotForms forces me to have all the submissions and spreadsheets in separate folders in my Google Drive root directory. I don't like that.

  • Profile Image
    JotForm Support

    Answered by ashwin_d on March 31, 2015 at 05:10 AM

    Hello Brunox13,

    Unfortunately it is currently not possible to choose any existing folder in google drive integration. 

    Let me send a feature request to our back end team. We will get back to you as soon as we have any update from them.

    Thank you!

  • Profile Image
    JotForm Support

    Answered by ashwin_d on March 31, 2015 at 05:12 AM

    Hello Brunox13,

    This seems to be a separate question and I cannot create ticket in this thread. I have moved yoru question to a new thread and you will be answered here:  http://www.jotform.com/answers/543723

    Thank you!