How do I set the date custom field to be hidden and automatically populate in subscriber forms?
Is there an easy way to automatically capture the sign up date in an opt-in form without requiring input from the subscriber?
When I add auto responders that don't have the custom date field, I get this screen:
When I add the custom field of "Date", I get this screen with additional options:
So, the question is, how do I edit the opt-in form so that the Date field is hidden (doesn't require subscriber input) and auto populates in Sendy based on the sign up date?
<form action="http://mydomain.com/subscribe" method="POST" accept-charset="utf-8"> <label for="name">Name</label><br/> <input type="text" name="name" id="name"/> <br/> <label for="email">Email</label><br/> <input type="text" name="email" id="email"/> <br/> <label for="Date">Date</label><br/> <input type="text" name="Date" id="Date"/> <br/> <input type="hidden" name="list" value="c"/> <input type="submit" name="submit" id="submit"/> </form>
This discussion has been closed.
Comments
Hi @vincentpolisi,
Set the 'Date' input field as hidden, then automatically populate "today's day" as the input value.
Eg.
<input type="hidden" name="Date" id="Date" value="Jan 21, 2013"/>
Thanks.
Ben
If I set value to today's date, is that going to change daily automatically?
In your example, you have:
What happens tomorrow when it's no longer Jan 21, 2013?
Is this information being pulled from the subscriber's computer based on his/her relation to GMT?
No, the snippet I provided above is an example.
Your date needs to be dynamic of course, to reflect "today's" date.
Forgive my ignorance but I'm not a Java or Curl programmer.
How does one set it to be dynamic?
Depending on what language you're using. If you use PHP, it will be:
value="<?php echo strftime('%b %d, %G', time());?>"
And that, my friend, is yet another reason why you get paid the big bucks for your mad coding skills.
Thanks.