Streaming live at 10am (PST)

Populate form field with CMS content - code not working ugh

I cannot get the field to populate. What am I doing wrong?


Here is my public share link: LINK
(how to access public share link)

No need for jQuery her. Add embed hidden html feild inside your form and that’s it.

The idea her:

Update if this is ok. If not i will look at your page later.

Take it out of the </body> tag and instead add an Embed element to the form. Then add the following inside the Embed element, replacing <add cms Slug field here> with the dynamic cms field you selected:

<script>
	var Webflow = Webflow || [];
	Webflow.push(function() {
  		$('#slug').val('<add cms Slug field here>');
	});
</script>

Did that fix it?

P.S.

If not, please double check that ID for your field, in your Webflow Designer, has the same spelling and case:

Screen Shot 2020-03-22 at 1.37.53 AM