Product

Create, publish and optimize pages with a drag&drop, pixel perfect and mobile-friendly builder

Speed up the creation process with 400+ customizable templates for landing pages, pop-ups and sections

Track microconversions in your Dashboard and analyze events and clicks with visual map

Integrate your pages with your favorite mar-tech apps and solutions to get the flow of your campaign going

Drive sales and conversions with irresistible product displays and seamless shopping experiences

Use a reliable and secure platform that smoothly handles millions of visits

Solutions

How to generate more traffic and get more leads.

How to reach global audience with language versions of landing pages.

How to take care of your digital footprint.

How to publish non-generic, handcrafted pages.

How to manage larger volumes of pages and clients.

How to deliver personalized content to potential customers.

Resources

Master digital marketing with the help from savvy professionals and increase your website’s conversions

Guides for beginners, set-up instructions and creation tips to get started and optimize your pages

A free online course for landing page creators! Learn the secrets of high-converting pages and become an expert

Get the answers you’re looking for – contact us

Schedule a one-on-one meeting with us and learn more about the benefits of our platform

Hire a Design Expert or order an import of your existing page from other platforms to Landingi

Home Help Center How to include the date and time of form submission in lead deatils

How to include the date and time of form submission in lead deatils

TABLE OF CONTENT

If you want to receive, in lead details (sent through the email integration or any form integration), the date and time when the lead has filled out the form on your landing page, add a hidden field to the form. Then choose one of the two JavaScript codes, depending on the format in which you want to receive the information: detailed, i.e. Mon Jul 01 2021 12:00:00 GMT+0200 (Central European Summer Time), or date and time only, i.e. 01.01.2021, 12:00:00.

Remember:

  • You can always check the date and time of form submission in the Leads tab on the platform.
  • The date and time of form submission correspond to your account’s time zone settings.

NOTE: This guide does not apply to forms on pop-ups and lightboxes.

Add a hidden field

1. Log in to your Landingi account and go to the editor of your landing page.

2. Navigate to Form settings. Click Add element (1) and select Hidden field (2). Then Save & close.

3. Publish the landing page and open it.

4. Find and copy the hidden field ID number. This guide will show you how to find it.

Add JavaScript code

Choose format of the date:

Detailed date

Format: Mon Jul 01 2021 12:00:00 GMT+0200 (Central European Summer Time)

1. Navigate to the JavaScript Code tab.

2. Click Add new script.

3. Copy the code indicated below. Change FIELDID to the copied hidden field ID number.

<script>
	document.getElementById('FIELDID').value = Date();
</script>

4. Name (1) the script and choose the Body bottom (2) position on the Main page (3). Paste the code (4) in the content field. Save by clicking Add script.

Date and time only

Format: 01.01.2021, 12:00:00

1. Navigate to the JavaScript Code tab.

2. Click Add new script.

3. Copy the code indicated below. Change FIELDID to the copied hidden field ID number.

<script>
    var d = new Date();
    var n = d.toLocaleString();
    document.getElementById('FIELDID').value = n;
</script>

4. Name (1) the script and choose the Body bottom (2) position on the Main page (3). Paste the code (4) in the content field.  Save by clicking Add script.

Integrate your form

1. Go back to your landing page editor and open the form Settings.

2. Set up the email integration or one of the integrations with external tools.

3. Remember to connect form fields with relevant fields in the external system.

4. Publish your landing page.

5. Go to your landing page, fill out the form, and check if the date has been added to lead details sent through the integration.

Related articles

Read Landingi reviews on G2