Google Apps Script: Make Row Taller on Form Submit

code making Google Forms rows taller

code making Google Forms rows taller

Code Increasing Row Height

If you use Google Forms (ha “if”, of course you use Google Forms) you may format the spreadsheet of results the way you like it. However, when a new Form submission comes in a row is INSERTED so the formatting you set doesn’t apply. Any easy (no for real) way to fix this is to code a trigger on Form submit that applies the formatting to your newly inserted row.

Step 1: Make a Google Form

http://forms.google.com/create

Step 2: Create the Spreadsheet

A spreadsheet is NOT automatically created for you when you create the Google Form. Click on the Responses tab and click the green spreadsheet icon to create the spreadsheet. This opens the spreadsheet.

Step 3: Tools Menu

In the spreadsheet go to the Tools menu and choose “Script editor.”

Step 4: Paste This Function

make Taller Script

function makeTaller() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var sheet = ss.getSheetByName(‘Form Responses 1’);
var last = sheet.getLastRow();
sheet.setRowHeight(last, 115);
}

Step 5: Set Trigger

In the Script editor go to the Edit menu. Choose “Current project’s triggers.”
current project trigger

This will allow you to set it up so that when someone submits the form that it runs the code. Have it run your function (I named mine “makeTaller”) from the events “From spreadsheet” and then choose “On form submit.” Hit save. That’s it! Now when someone submits the form your rows are taller!
On form submit



Learn More Coding

Join my Go Slow 6 week online workshop “Coding Google Apps Script for Noobs.” If you know how to copy and paste and are intersted in coding this workshop is for you. A new workshop starts up October 23rd (and new ones are being added all the time.)

alicekeeler.com/events

Taller Rows

Notice in the sample spreadsheet that the rows (except row 3 which is on purpose to show the contrast) is 115 pixels tall.




About Your Data PII

App’s use and transfer to any other app of information received from Google APIs will adhere to Google API Services User Data Policy, including the Limited Use requirements.

Compliance with Google’s Limited Use Policy

AliceKeeler LLC is committed to complying with the Google API Services User Data Policy, including the Limited Use requirements. Our use and transfer of information received from Google APIs adhere strictly to these policies, ensuring data is used only for the purposes necessary to provide and improve the Service.

  • Limited Use of Google User Data: The Service only accesses and uses Google user data in ways that are essential for the functioning and improvement of the Service, and not for independent purposes.
  • Transparency and Consent: We provide clear notice and obtain explicit consent from users before accessing or using their Google user data.
  • Data Minimization: We access only the minimum amount of data necessary from Google APIs to provide our Service.
  • Security Measures: We implement robust security measures to protect the confidentiality, integrity, and availability of Google user data.
  • Third-Party Sharing Restrictions: We do not share Google user data with third parties unless it is strictly necessary for the functioning of the Service and compliant with the Google API Services User Data Policy.
  • Google API Services User Data Policy: For more information about how we comply with the Google API Services User Data Policy, including the Limited Use requirements, please visit Google API Services User Data Policy.

For any questions or concerns regarding our use of Google user data, please contact us at info@alicekeeler.com.

© 2025 All Rights Reserved.

💥 FREE OTIS WORKSHOP

Join Alice Keeler, Thursday Oct24th or register to gain access to the recording.
Create a free OTIS account.

Join Alice Keeler for this session for using FigJam to start every lesson.

Exit this pop up by pressing escape or clicking anywhere off the pop up.