Skip to content Skip to sidebar Skip to footer

How To Put The Variable Field Names Into The Hidden Fields On A FormAssembly Form

We have two form tools for lead capture at my org and I'm trying to create a spreadsheet which uses the same formula to create the UTM parameter links to track our marketing campai

Solution 1:

Have you tried this:

https://stackblitz.com/edit/js-hgrwkn

If your input fields have Ids:

<input type="text" id="utm_source" name="tfa_200"/>

and your hidden fields:

<input type="hidden" id="tfa_200" name="utm_source"/>

then:

<script>
   document.getElementById('tfa_200').value = 
        document.getElementById('utm_source').name;
</script>

Then document.getElementById('tfa_200').name will contain utm_source.


Post a Comment for "How To Put The Variable Field Names Into The Hidden Fields On A FormAssembly Form"