Set Default Value for Fields

This example shows how to define a default value for a field. This default value will show up when the DataForm is loaded in the page first time.

Pick a Theme:

Employee IDFirst Name
Last NameTitle
Title Of CourtesyBirth Date 
Hire Date Address
CityRegion
Postal CodeCountry
Extension
Home PhoneReportsTo
Notes

  Design   Source  
  1. Open DataForm.NET Manager. In DataForm.NET List page, choose Employees by clicking the link.
  2. In the DataForm.NET Designer on the right hand side, the default tab is DataForm tab.
  3. Click HireDate link to open up DataForm Field Designer window.
  4. Switch to Default Value tab, the default value is specified as {today} which will show the date of today in the Hire Date field. For how to use the other options of default value, please see Defaut Value
  • Click HERE to open up a READ ONLY DataForm.NET Manager.
  • Click HERE to try for yourself.