We have just got a new CRM system that manages our online forms and I can manipulate it using JQuery to complete extra functions.
This is something we are doing on our current website where I am able to use pathnames to complete sections of the form.
For example... <URL>/John%20Smith/50 would preload the form with John Smith under name and £50 under donation.
Here is my current code for the new system:
<script>
window.addEventListener( 'load', function() {
var pageName = $(location).attr('pathname').split('/');
var arr = $.makeArray(pageName);
$('input[name=field[91]]').eq(0).val(arr);
$('input[name=field[9]]').eq(1).val(arr);
});
</script>
<script>inside<style>?