How to display the Current Date using Date Attribute in Master Layout?

Updated on May 28, 2020 11:36PM by Admin

The Master Layout is common for all apps which helps you to customize the app with the custom field according to your business needs. Text Attribute helps you to add the additional information required for your business.

Consider adding the Date Attribute in the Customers App to get the current date when a customer is created. Please follow the steps. 

Steps to follow

  • Log in and access the Customer App from the Navigation Menu.
  • Click on the More icon (...) and select the Settings.
Settings

  • Click on the Customize App dropdown from the Left Panel.
Customize app

  • Then, click on the Master Layout drop-down and select customers.
Master Layout

  • Select the Date Attribute from the Right Side Palette and drop on the customer information form.
Date attribute

  • Click on the Date Attribute, that will navigate to the Inspector Tab on the Right side.
Inspector Tab

  • In the Inspector tab, you can change the attribute name in the Custom Name section. Here, we are setting the label name as Created On.
Custom Name

  • Then, enable the Default value in the Default Behavior Section.
Behavior Section

  • From the Type Drop-down, you can view the Static and Dynamic.
Type

  • With the Static Selection, you can set the static date for Customer creation. For Example, you want to set a static date for the customer creation you can select Static in the Type and particular date in the Date Value.
Static

  • With the Dynamic Selection, you can set the custom system time. Select the Type as Dynamic. Then, click on the Custom Date button.
Dynamic

  • In the Function Editor, Select Today so that the system date will get updated automatically. Then, click on the Create button.
Function Editor

  • Save the changes.
Save

  • You can view the changes in the Customer Create Page.
Create Page

Please note the date once added during the creation of a customer does not change automatically everyday. It will only display the date when the record was created.