Webflow sync, pageviews & more.
NEW

Automatically Apply Coupon Code

Example

Automatically Apply Coupon Code

Description

Automatically apply a coupon code during checkout on your Webflow Memberstack website.

Instructions

  1. Add the Javascript code to the head custom code section
  2. Update COUPONCODE with your coupon code

Javascript snippet


<!-- Add to HEAD section -->
<script>

$(window).on('load', function(){
			
    $('.ms-have-a-coupon').trigger("click");
    setTimeout(function(){
        var event = new Event("input", {
          bubbles: true,
          cancelable: true,
        });
      $('#msCouponId')[0].value = "COUPONCODE";
      $('#msCouponId')[0].dispatchEvent(event);
      $('.ms-coupon-button')[0].click();
    }, 500);
    
});

</script>

CSS snippet

HTML snippet

Reload Page after Form Submit

Reload Page after Form Submit

Automatically refresh your Webflow site's page after a form submit with this Javascript snippet. A great way of indicating that a form has been submitted to a user or refreshing the page for another submission.

International Flags Phone Number Input

International Flags Phone Number Input

Add international flags to a phone number for input in Webflow. Adding this allows for a unique way of adding international flags to a phone form field in your Webflow site.

Custom Select Styling Multi-Select Input

Custom Select Styling Multi-Select Input

Design your own dropdowns and multi-select inputs in Webflow using Select2. With this Javascript code you'll be able to customize the look and design of the multi-select from the native browser select.

Reading Time Blog/Article Page

Reading Time Blog/Article Page

Display the reading time associated with a blog or article on your Webflow site with this Javascript code. With this code you'll be able to easily add a reading time to all of your blogs or articles on your Webflow site.

Draggable Text Area Input Resizing

Draggable Text Area Input Resizing

2

Make your default form inputs draggable and resizable on your Webflow sites with this CSS snippet. This CSS snippet allows for you to make your default form field inputs resizable by your users/visitors on your Webflow sites.

Random CMS Sort on Page Load

Random CMS Sort on Page Load

Webflow's random sort feature doesn't always work. This method allows for truly random sorting of Webflow CMS items on page load.

Set referring URL as hidden input

Set referring URL as hidden input

A method to pass the referring domain/URL as a hidden field in a form in Webflow. This is perfect to know who referred the person submitted the form, or a way to display the referring domain on the page on your Webflow site.

Add/Remove Form Input Buttons

Add/Remove Form Input Buttons

Add or remove form input fields with buttons on your Webflow site. This allows your users to add or remove form fields based on buttons on your Webflow site. A great way of adding dynamic form elements to your Webflow site.

DRAG
Real-time sorting by
No items found.
DRAG
Real-time sorting by