You can change the date format in your landing page form. In this guide, you will learn how to create your own Date field and customize the format to MM/DD/YY.

Customize the date format

  1. Go to the editor of your landing page. Click on the form to start editing. Go to Settings from the context menu (1) or toolbar on the right side of the editor (2).
  1. If your form contains the Date field – delete it.
  1. Click Add element and select Single line text.
  1. Change the Label to Date (2) and type in date in the Name attribute (2). Click Save and close.
  1. Go to Page Settings (1) in the right top corner of the editor and select Custom CSS (2).
  1. Go to Custom styles and paste this code, then Save and close:
  1. Publish your landing page.
  2. In the left upper corner, click the Smartpages’ logo and go to JavaScript Code. You can access the JavaScript Code pane also from the Dashboard of each landing page.
  1. Click Add script. Copy the following code.

Type in a name (1). Paste the code (2), and select Body bottom (3) and Main page (4). Click on Add.

  1. Go to the editor and publish your landing page again.
  2. Check if the date format is correct.

Was this article helpful to you?


Comments are closed.