AnsweredAssumed Answered

Insert php variable into marketo form hidden field

Question asked by 4788e18c15d1012a16671352db63e6a863e9c520 on Nov 17, 2016
Latest reply on Nov 23, 2016 by sanford.whiteman

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?