Gmail HTML with Conditional Formatting

  • 10 December 2020
  • 2 replies


I have a HTML Gmail template to send out to my clients, and I need the content to adapt to the value that I pulled from Airtable. (All texts in blue are pulled from Airtable)

I am trying to achieve this kind of conditional statement:

IF A < 30, Add “- Failed” after A and Turn “- Failed” into colour Red


I tried to use Zapier Path, but this will end up with so many paths I have to created. If I have 5 tests, I will need to make 25 paths. Is there a smarter way to achieve this? Does Javascript works with HTML in Gmail?


<!DOCTYPE html>

<h1>The template looks like this:</h1>



<p>Hi xxx,

Thanks for taking the speed test with us. Our findings indicate that some of your speed doesn’t match with our criteria: </p>


Speed A - Failed <br>

Speed B - Passed <br>

Speed C - Passed  <br>

Speed D - Passed  <br>

Speed E - Passed  <br>



<p>Thank you.</p>



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

2 replies

Userlevel 7
Badge +10


Just checking in to see if you still need help with this? 

Userlevel 7
Badge +14

Does Javascript works with HTML in Gmail?

No, but you could use a Code step in the Zap that utilized Javascript: