How to create a Webflow edit form & populate form fields via the CMS

Grab the Comments Template code:

<input type="hidden" name="Member Id" ms-data="id">
<input type="hidden" name="Comment Id" value=''>

<script>
  var Webflow = Webflow || [];
  Webflow.push(function() {
    $('#Name').val('');
    $('#Comment').val('');
  });
</script>

 

Grab the Members Template code:

<script>
var Webflow = Webflow || [];
Webflow.push(function() {
  $(document).on('submit', 'form', function() {
    setTimeout(function() { window.location.replace("/"); }, 3000);  
  });
});
</script>