Last active
October 30, 2020 07:09
-
-
Save vejnoe/0f8fa1812b72a36cb1d5c90bb864a3e0 to your computer and use it in GitHub Desktop.
Include title in form submission - Webflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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