<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tushar Pal on Medium]]></title>
        <description><![CDATA[Stories by Tushar Pal on Medium]]></description>
        <link>https://medium.com/@tusharpal93?source=rss-718c6c6daec6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*nfwi-dazVf68YToOAV861A.jpeg</url>
            <title>Stories by Tushar Pal on Medium</title>
            <link>https://medium.com/@tusharpal93?source=rss-718c6c6daec6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 02:05:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tusharpal93/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Embedding Google Forms within Chrome Extensions]]></title>
            <link>https://medium.com/@tusharpal93/embedding-google-forms-within-chrome-extensions-dc45753ae17f?source=rss-718c6c6daec6------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc45753ae17f</guid>
            <category><![CDATA[data-entry]]></category>
            <category><![CDATA[productivity-hacks]]></category>
            <category><![CDATA[google-forms]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[chrome-extension]]></category>
            <dc:creator><![CDATA[Tushar Pal]]></dc:creator>
            <pubDate>Wed, 20 Mar 2024 01:37:44 GMT</pubDate>
            <atom:updated>2024-03-20T01:37:44.401Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<h3>Defining the problem</h3><p>Switching between tabs to copy information to a Google sheet can quickly get exhausting. While Google Forms exists to fill information into a Google sheet in an organized manner, and Google Extensions are a good way to have additional functionality on your current tab, a combination of the two as of the writing of this article does not exist. This article will show you how to combine the two and create an extension to quickly enter information without changing your browser tab.</p><h3>Building the Google Form</h3><p>We will first head to <a href="https://forms.google.com/">forms.google.com</a> and build a Google Form using either a blank or an existing template. To store the data, we link it to a Google Sheet. More details on this can be found <a href="https://support.google.com/a/users/answer/9303071?hl=en">here</a> and <a href="https://support.google.com/docs/answer/2917686?hl=en">here</a>.</p><figure><img alt="Google Form Editor" src="https://cdn-images-1.medium.com/max/1024/1*X-otJ1hu9uuCt8HSmVZfZw.png" /><figcaption>Building the form in the editor | Credit: Author</figcaption></figure><p>Next, we need to generate an embed link for this form. This can be obtained by clicking the <strong>Send</strong> button on the top right.</p><figure><img alt="Send button" src="https://cdn-images-1.medium.com/max/640/1*IMq_OMqr-uzYkKxdvX6zVQ.png" /><figcaption>Google Form share/send button | Credit: Author</figcaption></figure><p>Once there, select the <strong>&lt;&gt; </strong>option. Set the width and height of the form, and note that the wider the form is, the more it will obstruct content on your tab when opened. When you’re done, click copy, and your iframe embed link is ready.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jGN26H1_c_bbPf7qxvSCbQ.png" /><figcaption>Generating the iframe embed link | Credit: Author</figcaption></figure><h3>Create the Chrome Extension</h3><p>I followed <a href="https://www.freecodecamp.org/news/building-chrome-extension/">this</a> excellent tutorial by Sampurna Chapagain to understand the basics of building a Chrome extension. An extension is a web app built with HTML, CSS, and Javascript. For Chrome to recognize it as an extension, we need to include a <strong>manifest.json</strong> file in the web app directory. For our Google Form extension, we first create a skeleton <strong>index.html</strong> file.</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br><br>&lt;head&gt;<br>    &lt;title&gt;Covid-19 Stats- UK&lt;/title&gt;<br>    &lt;meta charset=&quot;utf-8&quot;&gt;<br>&lt;/head&gt;<br><br>&lt;body&gt;<br>&lt;/body&gt;<br><br>&lt;/html&gt;</pre><p>We then insert the iframe embed link into the body section of the webpage. For security reasons, I have left out the src.</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br><br>&lt;head&gt;<br>    &lt;title&gt;Covid-19 Stats- UK&lt;/title&gt;<br>    &lt;meta charset=&quot;utf-8&quot;&gt;<br>&lt;/head&gt;<br><br>&lt;body&gt;<br>    &lt;iframe<br>        src=&quot;YOUR URL GOES HERE&quot;<br>        width=&quot;640&quot; height=&quot;640&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot;&gt;Loading…&lt;/iframe&gt;<br>&lt;/body&gt;<br><br>&lt;/html&gt;</pre><p>I opted to not use any additional CSS or JS, you can choose to add additional functionality with time. Maybe a dropdown to select a different form based on what you need at any given time.</p><h3>Creating the manifest.json</h3><p>Chrome needs a way to identify the web app as an extension, which it does through a <strong>manifest.json</strong> configuration file in the web app directory. To learn more about the various keys that a manifest can contain, you can refer to the official documentation <a href="https://developer.chrome.com/docs/extensions/reference/manifest">here</a>. The structure you will need is as below</p><pre>{<br>    &quot;name&quot;: &quot;Google Form Extension&quot;,<br>    &quot;version&quot;: &quot;0.0.1&quot;,<br>    &quot;description&quot;: &quot;Google Form Extension&quot;,<br>    &quot;manifest_version&quot;: 3,<br>    &quot;author&quot;: &quot;Tushar Pal&quot;,<br>    &quot;action&quot;:{<br>        &quot;default_popup&quot;: &quot;index.html&quot;,<br>        &quot;default_title&quot;: &quot;Google Form Extension&quot;<br>    }<br>}</pre><p>When this article was written, the current <em>manifest_version</em> is 3. Refer to the documentation and change it as needed.</p><h3>Loading your extension into Google Chrome</h3><p>To install your extension, go to <strong>Extensions &gt; Manage Extensions</strong> from the menu on the top left of your Chrome browser.</p><figure><img alt="Accessing Google Chrome Extensions menu" src="https://cdn-images-1.medium.com/max/878/1*h5W5fvb6Cc5gL--1M9gK5A.gif" /><figcaption>Accessing Google Chrome Extension menu | Credit: Author</figcaption></figure><p>Enable <strong>developer mode</strong>, which will let you install extensions on your local system without needing to register them on the app store.</p><figure><img alt="Enable developer mode" src="https://cdn-images-1.medium.com/max/1024/1*VjinVsyQVRC9udqJNaL-kg.png" /><figcaption>Enable developer mode | Credits : Author</figcaption></figure><p>Click on <strong>Load unpacked</strong> on the top left, and select the directory of your web app.</p><h3>Conclusion</h3><p>And we’re done!! You can now select the extension from your toolbar, and pin it so that it’s easier to access. Add the data that you need to, then click the <strong>Submit</strong> button. Each form submission will add a new row of data to the associated Google Sheet, and send you an email if you’ve configured it that way.</p><figure><img alt="Google Form Extension Demo" src="https://cdn-images-1.medium.com/max/666/1*-q_UpU9ftTd-TCte9Ph8Kg.gif" /><figcaption>Google Form Extension Demo | Credits: Author</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc45753ae17f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>