Hello,
I'm migrating a form to Chronoforms and one of the fields has a timestamp in it...
How can I use a hidden form field to do this?
Thanks.
I'm migrating a form to Chronoforms and one of the fields has a timestamp in it...
value="<?php echo date("Y-m-d G:H:s"); ?>"
How can I use a hidden form field to do this?
Thanks.
Hi driv,
You could use a Custom Code element to add a hidden input
Bob
You could use a Custom Code element to add a hidden input
<input type='hidden' name='timestamp' id='timestamp' value='<?php echo date("Y-m-d G:H:s"); ?>' />
but it might be more useful to add the timestamp after the form is submitted with a Custom Code action in the On Submit event<?php
$form->data['timestamp'] = date("Y-m-d G:H:s");
?>
Bob
This topic is locked and no more replies can be posted.