Field Templates

March 16, 2014 , by

Pistachio provides field templates to control how a field should be presented to the user and how it should be validated. The following field templates are available in Pistachio to enhance the user experience. The field templates are grouped by their category

ID

  • ID This type is used for the field that identifies as the primary key of the table and is available only for the Numeric field types.

Time

  • Date - Renders and validates a field as a date field with date picker.
  • Date/Time - Renders and validates a field as a date time field with date time picker.
  • Date/Time - Localized - Renders and validates a field as a date time field, with the date time value localized
  • Time- Renders and validates a field as a time field with a time picker.

Numeric

  • Currency - $x - Renders and validates a field as Currency. Eg, $2000
  • Currency - $x.xx - Renders and validates a field as currency with 2 decimal places. $2000.00
  • Number - Render and validate the field as numeric
  • Yes/No - Render the field as select box with Yes/No options.

Text

  • Yes/No - Render the field as select box with Yes/No options.
  • Text - Single Line - Use this field to display a single lined text box.
  • Text - Paragraph - Use this field to display a the field as textarea.
  • Text - HTML - Use this field to display html formatted data.
  • Password - Use this field to display a password box.

Special Input Masks

  • SSN - Use this field if you would like the data to be formatted and validated as SSN.
  • US Phone Number - Use this field if you would like the data to be formatted as US 10 digit number
  • US Phone Number with Extension - Use this field if you would like the datato be formatted as US 10 digit number with extension.
  • International Phone - Use this data if you would like the entry to be formatted as an International number.

Special View Page Rendering

  • Image - Render File type fields as images.
  • URL - Render data as a link.
  • Email Address - Render data as email.
  • Hidden Data Field - Text - Render as hidden text field.
  • Hidden Data Field - Numeric - Render as hidden numeric field.
  • Hidden Data Field - Date - Render as hidden date field.

Multiple Choice Options

The multiple choice options template will provide options for configuring data look-ups, so that the user are provided with data options from the look-up table. See Data Model - Multiple Choice Fields for further details.

  • Checkbox
  • Radio
  • Select - Single Select Dropdown
  • Select Multiple - Comma Delimitted, Single Field
  • Type-In Lookup
  • Search Popup
  • Section Search Popup
  • Select Type-In

Windows Security

  • Windows Group - Render a drop down that lists/searches Active Directory Groups
  • Windows User - Render a drop down that lists/searches Active Directory Users

Static Elements

For more information, see Data Model - Static Fields

  • Tab - Allows grouping of fields under different tabs.
  • Horizontal Divider - Render a horizontal ruler
  • Space - Render a space
  • Free Text - Render a static text