Skip to content

Instantly share code, notes, and snippets.

@aatronco
Created February 26, 2019 14:39
Show Gist options
  • Save aatronco/cbce28c0e803dea19d829b6f9687d281 to your computer and use it in GitHub Desktop.
Save aatronco/cbce28c0e803dea19d829b6f9687d281 to your computer and use it in GitHub Desktop.
<script>
$(document).ready(function(){
$('<div class="form-group"><div style="margin-top: 16px;" id="contactpage_custom" class="field"><label for="contactpage_custom" class="control-label">Empresa</label><br><input type="text" name="contact[custom]" id="contact_pcustom" class="text form-control"></div></div>').insertAfter("#contactpage_name")
});
$("#contact_form").submit(function(){
$("#contact_message").val("Empresa: "+ $("#contact_pcustom").val() + "\n" + $("#contact_message").val())
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment