Skip to content

Instantly share code, notes, and snippets.

@vejnoe
Last active October 30, 2020 07:09
Show Gist options
  • Save vejnoe/0f8fa1812b72a36cb1d5c90bb864a3e0 to your computer and use it in GitHub Desktop.
Save vejnoe/0f8fa1812b72a36cb1d5c90bb864a3e0 to your computer and use it in GitHub Desktop.
Include title in form submission - Webflow
<script>
// Adding the title of the page to a hidden form element.
var Webflow = Webflow || [];
Webflow.push(function () {
$('#event').attr( 'value', $('title').html() );
});
</script>
<input type="hidden" id="event" name="event" value="Unknown">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment