PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

How to put in notification title, the date & hours ?

  1. creativexperience
    Member

    I'm wondering how i can put in notification title, the date and hours the form has been submitted
    i see i can put this {date_mdy}
    but i want put : mm/dd/yy - h:m:s

    Posted 11 years ago on Friday December 14, 2012 | Permalink
  2. David Peralty

    We don't have a time indicator for when a form was submitted. To do this, you'll have to create a field in your form, and use one of our hooks to fill it with the PHP time code you want to use.

    I recommend the following:
    http://www.gravityhelp.com/documentation/page/Gform_pre_submission

    Using the following PHP:
    http://php.net/manual/en/function.date.php

    Posted 11 years ago on Friday December 14, 2012 | Permalink
  3. creativexperience
    Member

    Can you add this request in future release ?
    Actually, we want to know when the forms was submitted !

    Second question
    I put the code in my theme in function.php ?
    can i create a hidden field with Gravity, this new field must be hidden in front end form ?

    Posted 11 years ago on Saturday December 15, 2012 | Permalink
  4. David Peralty

    I will move this to feature requests.

    You put the code in your theme's functions.php file. And yes, you can create a hidden field in Gravity Forms or a normal text input field with a class of gf_hidden (and the css of .gf_hidden { display: none; } so then it is hidden in the front end.

    All my best!

    Posted 11 years ago on Monday December 17, 2012 | Permalink
  5. creativexperience
    Member

    Hi,
    I use imput hidden field. i follow your instructions but i get an error, i have 3 forms i use
    i didn't get good value when i received notification

    add_action("gform_pre_submission", "pre_submission_handler");
    function pre_submission_handler($form){
    $_POST["input_25"] = date('G:H:s');
    $_POST["input_24"] = date('G:H:s');
    $_POST["input_16"] = date('G:H:s');
    }

    How i can specify which imput i must use for each form ?
    You can see on : http://www.ipo-sa.com/

    Posted 11 years ago on Wednesday January 16, 2013 | Permalink
  6. Jean-Paul, if you would like help with your existing forms, please begin a new topic in the regular support forums. http://www.gravityhelp.com/forums/forum/gravity-forms#postform Please include as much information as you can, including a link to the page on your site where the form is embedded, and any custom code you are using.

    We try not to handle support in the pre-purchase and feature request forums. Thank you.

    Posted 11 years ago on Wednesday January 16, 2013 | Permalink

This topic has been resolved and has been closed to new replies.