Disable submit button on page load

I think I did it !

I found this article talking about pushing custom code that would affect Webflow component.
Here is the code using the asynchronous wrapper mentioned in the article:

// 🥑 Webflow asynchronous wrapper
var Webflow = Webflow || [];
Webflow.push(function () {
  var submitBtn = document.querySelector("input[type=submit]");
  submitBtn.disabled = true;
});

Hope that helps someone :slight_smile:

3 Likes