Skip to content

How do I set the date custom field to be hidden and automatically populate in subscriber forms?

edited January 2013 in Questions

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="" method="POST" accept-charset="utf-8">
    <label for="name">Name</label><br/>
    <input type="text" name="name" id="name"/>
    <label for="email">Email</label><br/>
    <input type="text" name="email" id="email"/>
    <label for="Date">Date</label><br/>
    <input type="text" name="Date" id="Date"/>
    <input type="hidden" name="list" value="c"/>
    <input type="submit" name="submit" id="submit"/>


  • Hi @vincentpolisi,

    Set the 'Date' input field as hidden, then automatically populate "today's day" as the input value.


    <input type="hidden" name="Date" id="Date" value="Jan 21, 2013"/>



  • If I set value to today's date, is that going to change daily automatically?

    In your example, you have:

    value="Jan 21, 2013"

    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?

    value="what goes here???"
  • BenBen
    edited January 2013

    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. :)

This discussion has been closed.