Best answer

Return multiple default values (100+) where answers are blank in Google Forms

  • 16 May 2020
  • 3 replies
  • 972 views

Userlevel 1

Hi All, 

I need to create a Zap for quite a long Google Form. 100 questions in the Google Form are not mandatory and I would like to assign a default value for each when there is a blank answer. 

I know I could use the Formatter > Text > Transform > Default Value function, however I want to avoid using multiple steps. My best guess is that this could be possible using Google Sheets. 

Anyone have any ideas?

Cheers!

 
icon

Best answer by Danvers 19 May 2020, 12:54

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Userlevel 7
Badge +12

I think that you might be able to do this if you set up a second worksheet in the Sheet that’s collecting the form response. You’ll need to switch the trigger of the Zap from Google Forms to Google Sheets - you can use this as a trigger if you want to add information to the sheet that’s beyond what the form gives you. 

 

In the second worksheet, for any required questions  you’ll need to directly reference the cell from the other sheet. For any where there is an optional question, you need an If formula - in Google sheets that looks like this: =IF(logical_test, value_if_true, value_if_false)

 

In this case, you’d want to set that something like this:  =IF(A2=””, “Default”, A2), which is saying if cell A2 is blank, then use the word ‘default’ and if it’s not, then use whatever is in A2. 

 

The one caveat here is that Google Sheets triggers can sometimes be picky when it comes to formula, so I’d advise doing a quick test before you change everything. From what I know of formulas and Google Sheets, this one should work but I haven’t tried that personally, so a test would be a good idea 🙂

Userlevel 7
Badge +12

Hi @jg97 - are you able to give and update on this? Did using a second sheet with formula work? Thanks!

Userlevel 1

Hi @Danvers  - apologies I thought I replied to this. Yes the second sheet worked :)