How can I configure Google document so that table of content is automatically updated whenever a new heading is added?

1 Answer 1


According to Add a title, heading, or table of contents in a document, to update the table of content, the corresponding refresh button should be clicked.

It's worth to say that according to comment #7 on Issue 2502: Add the ability to generate and update the TOC of a doc it's not possible to create or update a Table of Content by using Google Apps Script.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.