How to Populate Dates into Gravity Form Fields

  • Basic Usage Examples

    These fields are all pre-populated by the GW Populate Date snippet and set to "Read Only" using the GP Read Only plugin (available with the Gravity Perks package).
  • Date Format: MM slash DD slash YYYY
    This field is populated with the current date by the GW Populate Date snippet.
  • Date Format: DD dot MM dot YYYY
    This field is also populated with the current date; however, we've set the "Date Format" to "dd.mm.yyyy" in the field settings for this field.
  • This is a Single Line Text field that is populated with a date that is populated with a date one day ahead of the current date.
  • This is a Single Line Text field that is populated with a date that is populated with a date one year ahead of the current date.
  • Advanced Usage Example

    Use the GW Populate Date snippet to modify a user-submitted date and populate it into another field to be stored with the other submitted data.
  • Date Format: MM slash DD slash YYYY
  • Date Format: MM slash DD slash YYYY
    This Date field will be populated when the form is submitted with a modified date from the "User-specified Date" field above. It can be hidden from the user by adding the gf_hidden class to the "CSS Class Name" in the field settings.
  • This Single Line Text field will be populated when the form is submitted with a modified date from the "User-specified Date" field above. It can be hidden from the user by adding the gf_hidden class to the "CSS Class Name" in the field settings.

This demo is powered by Gravity Forms v2.4.14.