Thanks for the tag too @MFrankJohnson - @aalvarado - Here’s a way to do it without having to use the hubspot API
I went to restdb.io and created a simple datastore (you can use it, I won’t delete it)
Basically I created a counter where a record gets added to a noSQL database (not that important to know :D, just sharing)
Then, in the onFormReady() function callback, I am retrieving the record from the datastore and counting them. For the sake of simplicity in the plunkr example I put together, I just made the max number of submissions 3.
If the record count is 3 or more, then jQuery is hiding the form and showing the waiting list content.
If the record count is less than 3, the form continues to show and hides the waiting list div.
You will also notice a button that you will be able to use internally to reset the counter back down to 0.
In order to mimic this functionality in the plunkr, fill out the form and then hit stop and then start again. This will mimic a new user navigating to your form
Here’s the code you can use and swap out your form id and portal id:
<div class="waiting-room" style="display:block;">
<h3>Sorry, you're in the waiting room.</h3>
<div style="background:#3db5d8;color:white;float:left;padding:20px 50px;clear:both;margin-top:20px;cursor:pointer;" class="counter-reset">
RESET THE COUNTER
</div>
<div style="display:none;" class="loading"><img src="https://mir-s3-cdn-cf.behance.net/project_modules/disp/585d0331234507.564a1d239ac5e.gif" /></div>
</div>
<div class="show-the-form" style="display:none;">
<!--[if lte IE 8]>
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2-legacy.js"></script>
<![endif]-->
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"></script>
<script>
//this is the code for the reset button
$('.counter-reset').on('click', function(){
$('.loading').show();
var getsettings = {
"async": true,
"crossDomain": true,
"url": "https://alpha-7a1a.restdb.io/rest/counter",
"method": "GET",
"headers": {
"content-type": "application/json",
"x-apikey": "5b9c26256e310a4351fdc086",
"cache-control": "no-cache"
}
}
$.ajax(getsettings).done(function (response) {
$.each(response, function(i, v){
var settings = {
"async": true,
"crossDomain": true,
"url": "https://alpha-7a1a.restdb.io/rest/counter/"+v['_id'],
"method": "DELETE",
"headers": {
"content-type": "application/json",
"x-apikey": "5b9c26256e310a4351fdc086",
"cache-control": "no-cache"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
if(i == response.length){
$('.loading').hide();
}
})
});
})
hbspt.forms.create({
portalId: "662325",
formId: "6471aa9e-95b7-45fc-8fc0-da054edcc30a",
onFormReady: function(){ //this is the code to fectch the counter
var settings = {
"async": true,
"crossDomain": true,
"url": "https://alpha-7a1a.restdb.io/rest/counter",
"method": "GET",
"headers": {
"content-type": "application/json",
"x-apikey": "5b9c26256e310a4351fdc086",
"cache-control": "no-cache"
}
}
$.ajax(settings).done(function (response) {
$('body').prepend('<div style="margin-top:30px;margin-bottom:30px;">The counter is currently @ <strong>' + response.length + '</strong>')
if(response.length > 2){
$('.show-the-form').hide();
$('.waiting-room').show();
}else{
$('.show-the-form').show();
}
});
},
onFormSubmit: function(){ //this is the code to add a new entry to the counter
var jsondata = {"counter":"1"};
var settings = {
"async": true,
"crossDomain": true,
"url": "https://alpha-7a1a.restdb.io/rest/counter",
"method": "POST",
"headers": {
"content-type": "application/json",
"x-apikey": "5b9c26256e310a4351fdc086",
"cache-control": "no-cache"
},
"processData": false,
"data": JSON.stringify(jsondata)
}
$.ajax(settings).done(function (response) {
console.log(response);
});
}
});
</script>
</div>
And here’s the plunkr working example: Plunker - Untitled
P.S. I might cleanup the plunkr code later to make it more lean. Just don’t have a whole lotta time right now.
If this answer helped, please, mark as solved 
tim@belch.io | forms.belch.io | Design your own Beautiful HubSpot Forms; No coding necessary.
Drop by and say Hi to me on slack.