Date Picker properties

Date picker properties

Date picker lets your users pick a date easily. Moreover, the date picker can be used in calculations also (see Calculation Field).

 


Information

The date format (MM/DD/YYY or DD/MM/YY depends on the locale options selected in the Form:General -> Localization tab. The localization tab has option to change the date format as well.

 


Name

Name of the datepicker field. The name is used internally to identify the field. The name need to follow Naming Rules

 

Smart Init value

The initial value in the date field. You can have a fixed date (like 27/03/2012) or a dynamic initial value (like 'today' or 'anotherdate + 2 days'.

 

This is the generic format:

 

[today/another_date_field] [+/-] N [days/months/weeks/years]

 

Here are some more examples:

 

today + 1 month

another_date_field - 2 weeks

another_date_field + xx years

 

Where xx is a numeric/calculation field

 

1348652662_001_45You can combine a calculation field with the date picker smart init. example: another_date + num days where num is the name of the calculation field.

 

1348652662_001_45If the smart init is based on another date field, (example another_date + 3 days ) The smart init value is updated every time the user changes 'another_date'. However, Once the user has selected a date, the smart init will not change the value.

 

1348652662_001_45In a multi-page form, you can refer to date field in another page in smart init. Simfatic Forms will automatically fetch the correct value!

 

Icon

The icon shown next to the date field box. You can use a custom icon or select from the gallery.

 

Year range

The year range to be displayed in the datepicker dropdown.

  • The year range can be relative to the current date like this: -5:+5 meaning years spanning from 5 years in the past to 5 years in the future.
  • The year range can be fixed like this as well: 1900:2040

 

The default is -10:+10