Help & Support
Send Feedback
Doc Variables
Simple tool to add variables in content, title, header, and footer. Great way to add easy replacements in docs and templates!
9,433 users
Works with
I created this add on because we have a lot of contracts and proposals that use placeholders for commonly used terms such as Client Name, Project Name, or Addresses. Instead of going through the document and trying to find each placeholder, I created Doc Variables to search for a specific syntax, create a form that could assign the variables, and then replace them all in the content, title, header, or footer. Syntax: ${variable_name} Open up the sidebar and a form will display with all available variables. Enter in assignments/replacements, and then click "Replace Variables". Doc Variables will replace all instances of the collected variables.

Latest Update: Imported documents using the "file" variable type can now include variables that will be replaced if they match with a variable in the parent document

Previous Update: Added default values to text, textarea, and dropdown variable types.  Default values are signified by a "~".


${Variable Name::~Default Text}
${Textarea NAme::textarea::~Add this text as default content.}
${Select Variable::options::One,~Two,Three} (Two will be selected)

July 5, 2018
This is great! Any chance of you doing a HIPAA BAA?
Submit reply
July 5, 2018
We're a nonprofit that serves people with addictions. I don't think we can legally use the app without a signed BAA.
June 2, 2018
I will convert immediate to 5/5 stars if I can get pass this permission issue.
Submit reply
December 13, 2017
The below issue was address imm. after posting -- thanks ! Doc Variables is super easy to use, and In combination with company-created templates, it's fast becoming invaluable. Excellent work.
Submit reply
March 14, 2017
It's simple and it works very well. I use this tool in conjunction with my own google doc templates and it allows me to create proposal documents in no time. Jesse is active and communicative in supporting the app and I look forward to seeing what will be added next. So far it's satisfying all my use cases.
Submit reply
wonderful, helpful and very straightforward add on.
Submit reply
February 12, 2017
I've wanted this SO BADLY for a while now and this almost got me there. I don't like that it generates a completely new document each time. I wish I could put it in a mode where it just re-wrote the content of an existing doc when applied so that I don't end up with millions of copies of my templated doc. Also, when it spawns a new document, I wish it would put something unique in the name of that doc so that I know it was the one spawned from the plugin. I almost deleted my template because I was unable to recognize which one of the docs was the original one. The absolute best thing that could happen here is if there was a way to do in-doc variables that were somehow stored as metadata instead of replacing the text so that you could control the content in one doc alone and replace the text multiple times without losing the template... but I can see that this might be difficult :). Altogether, I think I can make this work for my needs, but I wanted to vocalize the issues I am having to let others know about them and to help the developer identify how they can make this plugin a must-have for every docs user! Good work guys :)
Submit reply
March 3, 2017
Zack, if you uncheck the "Apply variables in new document" it will replace the variables in the open document. I would also recommend adding a variable to the title of the doc so that you can make the title unique if you are generating a new copy.
January 29, 2017
As far as I'm concerned, this addon does not work. I open Doc Variables and a sidebar shows up with nothing in. Documentation is non-existent.
Submit reply
January 25, 2017
Very useful and helpful! I am very glad that I stumbled across this! Thank you for this wonderful Google Drive Addon!
Submit reply
January 28, 2017
Thanks for trying it out! Tell a friend. Best, Jesse
September 10, 2016
Have used it SO MUCH! Is this available for SLIDES?
Submit reply
September 21, 2016
I haven't looked into slides integration, but I will. I'll let you know Ryan. Thanks, Jesse
August 27, 2016
Great add-on. I don't know why I haven't used it sooner. For my use case I'd love to be able to enter one date and then have it be formatted different ways in the doc for example one variable that can be formatted as MM/DD/YYYY or YYYYMMDD. I am not sure if this already exists but just isn't in the document.
Submit reply
March 12, 2017
Date formatting has been added as of March 2017 -- let me know how it works for you. Thanks!
February 10, 2017
That is something I would like to be able to do. Perhaps something like: ${starting_date}::date(format:"d.M.yyyy") Anyways, great little add-on!
1-10 of 21
Additional information
Clear search
Close search
Google apps
Main menu