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
- 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).
- If your form contains the Date field – delete it.
- Click Add element and select Single line text.
- Change the Label to Date (2) and type in date in the Name attribute (2). Click Save and close.
- Go to Page Settings (1) in the right top corner of the editor and select Custom CSS (2).
- Go to Custom styles and paste this code, then Save and close:
- Publish your landing page.
- 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.
- 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.
- Go to the editor and publish your landing page again.
- Check if the date format is correct.