---
title: RESTRICTING BACKDATE SELECTION IN LANDING PAGE
description: "USE CASE: RESTRICTING BACKDATE SELECTION IN LANDING PAGE ACTION REQUIRED: While creating a landing page, the following script can be added at the \"End of the body\" under \"Page settings\" (step 4) to restrict backdate selection in landing page. (Please ..."
url: "https://supportb.kinsta.cloud/docs/restricting-backdate-selection-in-landing-page/"
updated: "2021-08-24"
category: "FAQ: Landing Page"
---

# RESTRICTING BACKDATE SELECTION IN LANDING PAGE

USE CASE: RESTRICTING BACKDATE SELECTION IN LANDING PAGE

ACTION REQUIRED:

While creating a landing page, the following script can be added at the **"End of the body" under "Page settings" (step 4)** to restrict backdate selection in landing page. *(Please refer to the script and screenshot (1) below)*

SCRIPT:

<script type="text/javascript" src="[https://f2.leadsquaredcdn.com/common/js/lsq.landingpage.helper.min.js](https://f2.leadsquaredcdn.com/common/js/lsq.landingpage.helper.min.js)">
 <script type="text/javascript">
 !function(){let o=window.onload,n=window.leadsquared.landingpage.customization.supportOnlyFutureDates;"function"!=typeof window.onload?window.onload=n:window.onload=function(){o&&o(),n()}}();
 </script>

 

![](https://desk.zoho.in/galleryDocuments/edbsn4cbc032fc5c51629d59b8ccb569c6a877046d206d8c6073b0455be8c3f50452373629abd43668ad9b72c282e38e4e65bf5f9bf2b770295ea36754cada3cc4e47)

*                                                            Screenshot (1)*

 Kindly copy the script and paste it at the “End of Body” section *(PFB the screenshot (2) for your reference)* and save it.

![](https://desk.zoho.in/galleryDocuments/edbsn4cbc032fc5c51629d59b8ccb569c6a87a54cb7e8a4ef63d5e1c17aea8dff2eb35fa7a2c0d5053f10f38020b4cc1fd6259f3cac0d4336a542997aaaa58af6770f)

*                                                           Screenshot (2)*

EXPECTED RESULT:

This will restrict the Lead to select backdate on the landing page. *(PFB the screenshot (3) for your reference)*

 ![](https://desk.zoho.in/galleryDocuments/edbsn4cbc032fc5c51629d59b8ccb569c6a87ae81801b8df2330952838531786dff4445a2b234a4527cfde71fc1ed94a60d1d918db99e4b68942730b93b04dee0f1e2)

**                                           ***Screenshot (3)*

LIMITATION:

The lead will be able to modify the date and put any backdate by typing it. *(PFB the screenshot (4) for your reference)*

![](https://desk.zoho.in/galleryDocuments/edbsne4792578fd1420cfc125f13e9721e3d483370a9bae39c95b64aec37f3d8a102842d9a5c2997cbaaedf8a6f7a27e8bcc4193336c74814b373939b1610a0d05b37)
*                                                   screenshot (4)*
