- jared1982Asked on February 28, 2014 at 02:05 PM
I want to populate a default value with a PHP variable in a hidden field. Whenever I try and add the code to the default value its cuts off the "<?php echo $this" at the beginging. Is there any workarounds to make this work?
<?php echo $this->htmlEscape($this->helper('contacts')->getUserName()) ?>
- JotForm SupportMike_TAnswered on February 28, 2014 at 04:08 PM
Thank you for contacting us.
It should be possible to populate the value with php. Are you trying to use mentioned php code in combination with the form source code, or some other embedding method?