17 Replies Latest reply on Nov 23, 2016 3:33 PM by Sanford Whiteman

    Insert php variable into marketo form hidden field

      I would like to have a marketo form hidden feild insert some php code.

      <input type="hidden" name="Campaign_Name__c" class="mktoField mktoFieldDescriptor mktoFormCol" value="<?php echo $mkto_camp_name ?>" />

      We put the <?php echo $mkto_camp_name ?> into the form designer campaign name hidden field, but it is rendering as php text and not rendering the Campaign name we grab from the wordpress php. Probably because marketo is rendering the form after the php is already rendered in the browser.


      Is there any way to insert php code into the form field and have it render correctly?