Reaction Buttons Blog Using Google Forms By Blogger Store

Reaction Buttons Blog Using Google Forms By Blogger Store
Reaction Buttons Blog Using Google Forms By Blogger Store

Are you tired of using the same old Google Forms templates for your projects? Do you want to create custom HTML forms that match your unique brand identity or personal style? Then look no further than the Google Form HTML exporter tool!

In this step-by-step tutorial, we'll show you how to use the Google Form HTML exporter to create fully customizable HTML forms in minutes. Whether you're a business owner looking to create professional-looking forms for your website or a student wanting to jazz up your school projects, this tool is perfect for anyone looking to add some flair to their Google Forms.

You'll learn how to access and install the Google Form HTML exporter tool, how to use it to customize the appearance and functionality of your forms, and how to integrate your custom HTML forms into your website or other projects. Plus, we'll provide tips and tricks for using the tool effectively and avoiding common mistakes.

By the end of this tutorial, you'll have the skills and knowledge you need to create stunning custom HTML forms using the Google Form HTML exporter. So what are you waiting for? Let's get started!

Creating Reaction Buttons on Blogs - Reaction buttons or reaction buttons on blogs can represent readers' reactions or judgments about a post they read. Usually blog owners put it at the end of the article.

There are many third-party services for installing react button widgets on blogs, such as using the sharethis service. But what if you want to install reaction buttons without third-party plugins ?

We can use the modified Google Form to create reaction buttons on the blog, if you want to implement it please follow the following tutorial.

Reaction Buttons Blog Using Google Forms

Create a Google Form

Your first step should be to create a new Google Form from the following page.

Then create items in the form as follows:

Reaction Buttons - Google Form


  • Article title | URL:Use the short answer text field type
  • Reactions:Use multiple choice column type [radio button]
  • required or mandatory contents must be activated

Then make a selection of items such as like, love, sad. You can adjust the sentence according to your needs.

Get ID of Each Google Form Question

The second step is to take and copy the Enty ID form for each question from the Google Form source that we created earlier, using the Developer Tools or the convert google form to html tool .

To make it more practical here I use the google form html convert tool, then copy the ID marked as shown below

Reaction Buttons - Google Form html


  • ID Form action: 1FAIpQLSc7HqSMb1JHjsMb1wKk5-KuBmvj4GVPb7R2yc6knWkzoYfzZQ
  • entry ID Article title | URL: entry.798238143
  • entry ID Reactions: entry.1853284040

Each ID will be different, so please copy the google form ID that you got from the form you created

Installing Reaction Buttons on Blogger

If you have followed the two steps above, the next step is to create a reaction button on the blog. Please follow the steps below:

  • Enter
  • Click Theme > click Drop down > Edit HTML
  • Search code <data:post.body/>, Ctrl + F speeds up the search
  • Continue Copying the code below, then Paste just below<data:post.body/>
<b:if cond='data:view.isPost'>
  <div class='reaction'>
    <!-- Specify the form submission URL -->
    <form action='' class='reaction-form' method='POST' target='send_reaction'>
      <!-- Specify article title and URL -->
      <input expr:value='data:post.title + " | " + data:post.url.canonical' name='entry.XXXXXXXXXX' readonly='readonly' type='hidden'/>
      <fieldset class='reaction-fieldset'>
        <legend>send reaction</legend>
        <!--Generate radio buttons for reaction answers in a loop-->
        <b:loop values='["Like!", "Love!", "Sad!"]' var='reaction'>
          <label class='reaction-lbl'><button class='reaction-button' expr:value='data:reaction' name='entry.XXXXXXXXXX' required='required' type='submit'><span><data:reaction/></span></button></label>
      <!-- Send complete message -->
      <div class='reaction-message' style='display:none'>Thank you for your reaction!</div>
      <!-- iframe element for post-send processing -->
      <iframe class='reaction-iframe' name='send_reaction' style='display:none'/>


  • ID_FORM_POST Isi dengan ID Form action Post
  • XXXXXXXXXXFill with Enty ID
  • XXXXXXXXXXFill with Enty ID
  • ["Like!", "Love!", "Sad!"]Replace with the reaction sentence according to the first step

The next step is to add the following code above the code in</body>

<b:if cond='data:view.isPost'>
  window.addEventListener('DOMContentLoaded', () => {
    // Submission form, get iframe for processing after form submission
    const form = document.querySelector('.reaction-form');
    const iframe = form.querySelector('.reaction-iframe');
    // Flag initialization
    let submitted = false;
    // Set a flag when transmission is complete
    form.addEventListener('submit', () => {
      submitted = true;
    // Runs when the iframe finishes loading
    iframe.addEventListener('load', () => {
      // Processing after completion of transmission
        // Get radio button group, submit button and submission complete message
        const fieldset = form.querySelector('.reaction-fieldset');
        const button = form.querySelector('.reaction-button');
        const message = form.querySelector('.reaction-message');
        // Disable radio button
        fieldset.disabled = true;
        // Disable/Hide Submit Button
        button.disabled = true;
        // Display send complete message = 'block';

Lastly, add the following CSS just above the code </head>.

<b:if cond='data:view.isPost'>
  /* Reaction */
  .reaction{margin:3em 0;line-height:1;color:#333}
  .reaction-fieldset legend{font-size:1.8rem;line-height:1.6;font-weight:bold;text-align:center}
  .reaction-fieldset label{margin:0 .25em}
  .reaction-fieldset span{padding:.75em .5em}
  .reaction-fieldset input:checked + span{font-weight:bold;color:#333}
  .reaction-button{display:block;margin:2em auto 0;background:#fa0000;color:#fff;padding:.75em 1.5em;border-radius:10px;border:none}
  .reaction-button:focus{outline:solid 2px #333;background:#fff;color:#333}
  .reaction-fieldset:not([disabled]) button:hover,.reaction-fieldset:not([disabled]) button:focus,.reaction-fieldset[disabled] button{background:#666}

When everything is done, click SAVE.

See the results of the Response Reaction Buttons

Now you can see the response results on the Google form from visitors who have responded to articles.

Reaction Buttons Blog Using Google Forms By Blogger Store
Reaction Buttons Blog Using Google Forms By Blogger Store

Reaction Buttons


So, that was Making Reaction Buttons on the Blog Using Google Forms . Hopefully this article can be useful. You can also share and recommend to friends who need it.

Reference Links:

Post a Comment

Previous Post Next Post
Marwat Tech

let's build a community