Product
BUILD
NEW

AI-generated pages, built to evolve

Build pages with total design control

Elevate copy, SEO, and visuals

Launch faster with flexible templates

Engage with forms to capture data

OPTIMIZE
NEW

AI insights for page performance

Compare variants and lift results

Track clicks and uncover intent

Sync sections across every page

Expand pages into new markets

SCALE
SOON

MCP power for AI workflows

Scale pages from one smart layout

Use a reliable and secure platform

Manage large accounts and campaigns

Connect pages to your campaign flow

Solutions

Capture more leads with less friction

Turn more visits into conversions

Get more return from paid traffic

Scale page operations with control

Strengthen your presence across channels

Match content to visitor intent

Launch pages tailored to your brand

Turn shopping traffic into more sales

Resources

Practical advice for marketers

Guides, setup, and how-tos

Free tools and learning for marketers

See how teams improve results

Explore the platform with our team

Get expert help with page design

HomeHelp CenterLeads & statisticsHow 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

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.

TABLE OF CONTENT
G2 reviews for Landingi