Difference between revisions of "Creating Custom Fields"

From SmartWiki
Jump to: navigation, search
Line 1: Line 1:
==Creating Custom Fields – Step by Step==
+
=Creating Custom Fields – Step by Step=
  
 
In this example you will add [[Custom Fields|custom fields]] to the employee [[Role|role]] information, however; the attributes of the [[Custom Fields|custom fields]] are the same, regardless of the object.
 
In this example you will add [[Custom Fields|custom fields]] to the employee [[Role|role]] information, however; the attributes of the [[Custom Fields|custom fields]] are the same, regardless of the object.
Line 18: Line 18:
 
The [[Custom Field|custom field]] list is displayed – currently blank.
 
The [[Custom Field|custom field]] list is displayed – currently blank.
  
[[Image:Creating_custom_fields_2.png|link:]]
+
[[Image:Creating_custom_fields_2.png|link:|1000px]]
 
   
 
   
 
4. Click the '''New Field''' tab.
 
4. Click the '''New Field''' tab.
Line 26: Line 26:
 
The '''New Custom Field''' window is displayed.
 
The '''New Custom Field''' window is displayed.
  
[[Image:Creating_custom_fields_new_custom_field_4.png|link:]]
+
[[Image:Creating_custom_fields_new_custom_field_4.png|link:|800px]]
  
 
   
 
   
Line 38: Line 38:
 
* '''Description''' - a general description for the custom field
 
* '''Description''' - a general description for the custom field
  
===Display===
+
==Display==
  
 
* '''Display Order''' - determines the order in which the fields will be displayed on the page.  The display order will start at the number 10 and increment by 10 for each [[Custom Field|custom field]]. The display order can be changed at any time without affecting any data.
 
* '''Display Order''' - determines the order in which the fields will be displayed on the page.  The display order will start at the number 10 and increment by 10 for each [[Custom Field|custom field]]. The display order can be changed at any time without affecting any data.
Line 45: Line 45:
 
* '''On New Record''' - define how the custom field will be displayed on a new record. Options '''"Always Display", "Hide on New Record", "Only Show on New Record"'''.
 
* '''On New Record''' - define how the custom field will be displayed on a new record. Options '''"Always Display", "Hide on New Record", "Only Show on New Record"'''.
  
<u>'''Allow Empty Input Check Box'''</u>
+
==Options==
  
The '''Allow Empty Input''' check box is displayed for text and select type fields, and controls if data is mandatory in that field.
+
The '''Options''' field displayed below the field type will change depending on the field type selected.
 
 
[[Image:Creat5.png]]
 
 
* If you disable '''Allow Empty Input''' for '''Text''' type fields, the [[User|user]] will have to enter a value into the text box.
 
* If you disable '''Allow Empty Input''' for '''Select''' type fields, the [[User|user]] will NOT be able to save the record without selecting a value other than the first value.
 
 
 
* '''Appear Mandatory''': Makes the field appear as through it required even though "Allow Empty" is selected.
 
 
 
<u>'''Additional Field level Options'''</u>
 
 
 
* '''Searchable Check Box''' - the '''Searchable''' check box is used to make the field searchable.
 
* '''Track Changes''' – this setting is used to indicate that all changes to the value in field should be tracked.  This tracking includes the original and replacement value, the [[Username|username]] and the date/time that the change was made.
 
 
 
In order to see the changes a [[User|user]] needs to be in a [[Role|role]] associated with the '''Manager Permission''' – '''View Custom Field Changes'''.  When in this [[Role|role]] an icon is displayed next to the field caption.
 
  
[[Image:Creat6.png]]
 
 
<u>'''Option Settings'''</u>
 
  
The '''Options''' field displayed below the field type will change depending on the field type selected.
 
 
* For '''Select one''' or '''Multiple select''' type fields this will contain the list of selection options – separated by semi-colons.
 
* For '''Select one''' or '''Multiple select''' type fields this will contain the list of selection options – separated by semi-colons.
 
* For '''Text type''' [[Custom Fields|custom fields]], this can contain a default value for the field, or an instruction as to the purpose of the field.
 
* For '''Text type''' [[Custom Fields|custom fields]], this can contain a default value for the field, or an instruction as to the purpose of the field.
 
* For '''Calculated''' fields, this contains the expression.
 
* For '''Calculated''' fields, this contains the expression.
 +
 
* For a multiple column layout, a '''Title Label''' field is used and the default value is set to the number of columns required.
 
* For a multiple column layout, a '''Title Label''' field is used and the default value is set to the number of columns required.
  
<u>'''Services Settings'''</u>
+
[[Image:Creating_custom_fields_options_5.png|link:]]<br />
 +
''Options for text and select type fields''
 +
 
 +
* The '''Allow Empty Input''' check box is displayed for text and select type fields, and controls if data is mandatory in that field.
 +
:* If you disable '''Allow Empty Input''' for '''Text''' type fields, the [[User|user]] will have to enter a value into the text box.
 +
:* If you disable '''Allow Empty Input''' for '''Select''' type fields, the [[User|user]] will NOT be able to save the record without selecting a value other than the first value.
 +
* '''Appear Mandatory''': Makes the field appear as through it required even though "Allow Empty" is selected.
 +
* '''Searchable''' - the '''Searchable''' check box is used to make the field value appear in the system search.
 +
* '''Track Changes''' – this setting is used to indicate that all changes to the value in field should be tracked.  This tracking includes the original and replacement value, the [[Username|username]] and the date/time that the change was made.
 +
* '''Enable [[KML|KML]]''' - allows KML data (for mapping applications) to be used.
 +
* '''Disable Quick Edit''' - checking this box will disable the '''"Quick Edit"''' feature.
 +
* '''Disable Field from Global Search''' - this option is used to make the field value appear in '''[[Global Search|Global Searches]]'''.
 +
* '''Enable Map Service''' - displays the map icon next to the field name.  This icon will launch the [[User|user’s]] selected map service and display a map of the content of the field – provided a valid address is stored in the field.
 +
* '''[[Enable Translation Service|Enable Translation Service]]''' - allows for language translation of data entered into text fields, achieved by integration with Google Translate.
 +
* '''Read Only''' - uncheck this box to allow users to edit this field.
  
The services options provide links between a field’s contents and [[External|external]] web services.
+
In order to see the changes a [[User|user]] needs to be in a [[Role|role]] associated with the '''Manager Permission''' – '''View Custom Field Changes'''.  When in this [[Role|role]] an icon is displayed next to the field caption.
  
[[Image:Creat7.png]]
 
 
* '''Enable Map Service''' – displays the map icon next to the field name.  This icon will launch the [[User|user’s]] selected map service and display a map of the content of the field – provided a valid address is stored in the field.
 
* '''Enable People Search Service''' – displays the '''Search Internet''' icon next to the field name.  This icon will launch a variety of search services and display the contact details from those services– provided a valid contact name is stored in the field.
 
* '''Enable Organisation Search Service''' – displays the '''Search Internet''' icon next to the field name.  This icon will launch a variety of search services and display the organisations details from those services– provided a valid organisation name is stored in the field.
 
  
<u>'''Validation Settings'''</u>
+
==Validation Settings==
  
 
The '''Validation''' fields displayed below the field type will change depending on the field type selected.
 
The '''Validation''' fields displayed below the field type will change depending on the field type selected.
  
[[Image:Creat8.png]]
+
[[Image:Creating_custom_fields_validation.png]]
 
   
 
   
 
You can control the validation of any text type [[Custom Field|custom field]].
 
You can control the validation of any text type [[Custom Field|custom field]].
* '''Basic validation''' consists of date, numeric, and alphabetic validation.  If you select date validation, a calendar icon will be displayed to the right of the field name automatically.
 
* '''Custom validation''' allows you to set input masks for the field.  For example '''>100 or @value@>100''' would restrict the value entered to greater than 100.  To validate 9 digits SIN number, '''isMatch(@value@, 'NNNNNNNNN', false)'''.  See the [[SmartSimple]] wiki for additional examples.
 
* Message will display a field specific message if the validation criteria are not met.
 
* For more advanced page level validations you can use the [[Custom Field Type: Special – Browser Script|Custom Field – Special Browser Script]] to add a specific script to any page.
 
  
<u>'''Value Stores To'''</u>
+
* '''Validation Options''' - check-mark enables [[Server-Side Validation|Server-Side Validation]] allowing for consolidated validation error messages to be displayed.
 +
* '''Validation Type''' - options include '''"date", "numeric", and "alphabetic"''' validation.  If you select date validation, a calendar icon will be displayed to the right of the field name automatically.
 +
* '''Javascript Validation''' - allows you to set input masks for the field.  For example '''>100 or @value@>100''' would restrict the value entered to greater than 100.  To validate 9 digits SIN number, '''isMatch(@value@, 'NNNNNNNNN', false)'''.  See the [[SmartSimple]] wiki for additional examples.
 +
* '''Validation Error Message''' - will display a field specific message if the validation criteria are not met.
 +
:* For more advanced page level validations you can use the [[Custom Field Type: Special – Browser Script|Custom Field – Special Browser Script]] to add a specific script to any page.
 +
* '''Maximum Count Message''' - sets the maximum character count for the field. Options include check boxes to '''Show Counter''' which will display the character count and '''Count Words'''  which will change from counting characters to counting words.
 +
* '''Maximum Count Message''' - will display a field specific message if the Maximum Count Message criteria is not met.
 +
 
 +
==Value Stores To==
  
[[Image:Creat9.png]]
+
[[Image:Creating_custom_fields_value_storage.png|link:]]
 
   
 
   
 
* This setting will take the value for the current field and store it into another field associated with the same [[Entity|entity]].
 
* This setting will take the value for the current field and store it into another field associated with the same [[Entity|entity]].
 
* For example, you may need two fields, one captioned in English and another captioned in French, but need to store the value into a single field.
 
* For example, you may need two fields, one captioned in English and another captioned in French, but need to store the value into a single field.
  
<u>'''Formatting Settings'''</u>
+
==Formatting Settings==
  
 
The formatting settings control the presentation of text type fields.
 
The formatting settings control the presentation of text type fields.
  
[[Image:Creat10.png]]
+
[[Image:Creating_custom_fields_formatting.png|link:]]
 
   
 
   
* '''Height''' – controls the number of lines for a text box.  This size is based on the default text size in the client [[Browser|browser]].
+
* '''Caption Style''' – controls the bold, underline, italic and highlight attribute when the field is displayed in view mode.
 +
::'''Note:''' For Caption Style, put @value@ inside html style tags like <u>@value@</u>
 
* '''Width''' – controls the width of the next box.
 
* '''Width''' – controls the width of the next box.
 
* '''Number Format''' – controls the format of the data when the field is displayed in '''View''' mode.  You can use standard setting such as Integer,  Decimal, Currency, Percent or custom formats such as $#,###.00.
 
* '''Number Format''' – controls the format of the data when the field is displayed in '''View''' mode.  You can use standard setting such as Integer,  Decimal, Currency, Percent or custom formats such as $#,###.00.
* '''Style''' – controls the bold, underline, italic and highlight attribute when the field is displayed in view mode.
+
* '''Number Precision''' - control how many decimal places are displayed for numbers.
 
* '''Tool Tip''' – provides mouse over help to the [[User|user]] in the use of the field.
 
* '''Tool Tip''' – provides mouse over help to the [[User|user]] in the use of the field.
 +
* '''Align''' - control the justification of the text within the field.
 +
*  '''Custom HTML Tag''' - Use this field for additional attributes to the field HTML tag. For Example: style="background-color=00ff00" or onfocus="this.value='Populate this text in field when selected'"
  
<u>'''Role Permissions'''</u>
+
==Permissions & Availability==
  
 
Access to a [[Custom Field|custom field]] is controlled by [[Role|role]] based permissions.
 
Access to a [[Custom Field|custom field]] is controlled by [[Role|role]] based permissions.
  
[[Image:Creat11.png]]
+
To access the '''Role''' and '''Status''' access settings click on the '''Permissions & Availability''' tab next to the General Settings.
+
 
 +
[[Image:Creating_custom_fields_permissions.png|link:]]
 +
 
 +
Field permissions can be controlled by role and by status.
 +
 
 
* '''Allow View Field''' – If you associate this setting with [[Role|roles]], then the field will only be displayed to people with these [[Role|roles]].  If you leave this field blank, then everyone will be able to see the field.
 
* '''Allow View Field''' – If you associate this setting with [[Role|roles]], then the field will only be displayed to people with these [[Role|roles]].  If you leave this field blank, then everyone will be able to see the field.
 
* '''Allow Modify Field''' – If you associate this setting with [[Role|roles]], then the field will only be modifiable by people with these [[Role|roles]].  If you leave this field blank, then everyone will be able to modify the value on the field.
 
* '''Allow Modify Field''' – If you associate this setting with [[Role|roles]], then the field will only be modifiable by people with these [[Role|roles]].  If you leave this field blank, then everyone will be able to modify the value on the field.
Line 125: Line 128:
 
* '''Deny Modify Field''' – If you associate this setting with [[Role|roles]], then the field will not be modifiable by people with these [[Role|roles]].  If you leave this field blank, then everyone will be able to modify the value on the field.
 
* '''Deny Modify Field''' – If you associate this setting with [[Role|roles]], then the field will not be modifiable by people with these [[Role|roles]].  If you leave this field blank, then everyone will be able to modify the value on the field.
  
==Creating Custom Fields==
+
 
 +
=Creating Custom Fields=
  
 
1. Create the following fields for the employee [[Role|role]] you have previously established:
 
1. Create the following fields for the employee [[Role|role]] you have previously established:

Revision as of 16:31, 5 January 2016

Creating Custom Fields – Step by Step

In this example you will add custom fields to the employee role information, however; the attributes of the custom fields are the same, regardless of the object.

1. Click the Configuration Tab, then click on Roles & Permissions menu.

2. Click the Edit button for the Employee role.

Creating custom fields 1.png

There are three types of custom fields that you can associate with a role.

  • Base Custom Fields – these fields are always associated with the role.
  • UTA Custom Fields – these fields are only used when you associate a contact with the role in the context of a Universal Tracking Application.
  • Association Custom Fields – these fields are only used when you associate a contact with the role in the context of associating a contact with an organisation.

3. Click the Base Custom Fields tab.

The custom field list is displayed – currently blank.

link:

4. Click the New Field tab.

link:

The New Custom Field window is displayed.

link:


This window consists of the following settings:

General Settings

  • Field Type - defines the content type for the field.
  • Field Name – the name for the custom field. This name will also function as the caption unless the caption is set.
  • Description - a general description for the custom field

Display

  • Display Order - determines the order in which the fields will be displayed on the page. The display order will start at the number 10 and increment by 10 for each custom field. The display order can be changed at any time without affecting any data.
  • Tab Name – by adding a tab name, the custom field will be displayed on a tab of the same name at the top of the form. This technique reduces the length of the page. You can use multiple tabs and each field will be displayed under the associated tab.
  • Caption – an alternative caption to the field name. If a caption is set it will be displayed rather than the field name.
  • On New Record - define how the custom field will be displayed on a new record. Options "Always Display", "Hide on New Record", "Only Show on New Record".

Options

The Options field displayed below the field type will change depending on the field type selected.


  • For Select one or Multiple select type fields this will contain the list of selection options – separated by semi-colons.
  • For Text type custom fields, this can contain a default value for the field, or an instruction as to the purpose of the field.
  • For Calculated fields, this contains the expression.
  • For a multiple column layout, a Title Label field is used and the default value is set to the number of columns required.

link:
Options for text and select type fields

  • The Allow Empty Input check box is displayed for text and select type fields, and controls if data is mandatory in that field.
  • If you disable Allow Empty Input for Text type fields, the user will have to enter a value into the text box.
  • If you disable Allow Empty Input for Select type fields, the user will NOT be able to save the record without selecting a value other than the first value.
  • Appear Mandatory: Makes the field appear as through it required even though "Allow Empty" is selected.
  • Searchable - the Searchable check box is used to make the field value appear in the system search.
  • Track Changes – this setting is used to indicate that all changes to the value in field should be tracked. This tracking includes the original and replacement value, the username and the date/time that the change was made.
  • Enable KML - allows KML data (for mapping applications) to be used.
  • Disable Quick Edit - checking this box will disable the "Quick Edit" feature.
  • Disable Field from Global Search - this option is used to make the field value appear in Global Searches.
  • Enable Map Service - displays the map icon next to the field name. This icon will launch the user’s selected map service and display a map of the content of the field – provided a valid address is stored in the field.
  • Enable Translation Service - allows for language translation of data entered into text fields, achieved by integration with Google Translate.
  • Read Only - uncheck this box to allow users to edit this field.

In order to see the changes a user needs to be in a role associated with the Manager PermissionView Custom Field Changes. When in this role an icon is displayed next to the field caption.


Validation Settings

The Validation fields displayed below the field type will change depending on the field type selected.

Creating custom fields validation.png

You can control the validation of any text type custom field.

  • Validation Options - check-mark enables Server-Side Validation allowing for consolidated validation error messages to be displayed.
  • Validation Type - options include "date", "numeric", and "alphabetic" validation. If you select date validation, a calendar icon will be displayed to the right of the field name automatically.
  • Javascript Validation - allows you to set input masks for the field. For example >100 or @value@>100 would restrict the value entered to greater than 100. To validate 9 digits SIN number, isMatch(@value@, 'NNNNNNNNN', false). See the SmartSimple wiki for additional examples.
  • Validation Error Message - will display a field specific message if the validation criteria are not met.
  • Maximum Count Message - sets the maximum character count for the field. Options include check boxes to Show Counter which will display the character count and Count Words which will change from counting characters to counting words.
  • Maximum Count Message - will display a field specific message if the Maximum Count Message criteria is not met.

Value Stores To

link:

  • This setting will take the value for the current field and store it into another field associated with the same entity.
  • For example, you may need two fields, one captioned in English and another captioned in French, but need to store the value into a single field.

Formatting Settings

The formatting settings control the presentation of text type fields.

link:

  • Caption Style – controls the bold, underline, italic and highlight attribute when the field is displayed in view mode.
Note: For Caption Style, put @value@ inside html style tags like @value@
  • Width – controls the width of the next box.
  • Number Format – controls the format of the data when the field is displayed in View mode. You can use standard setting such as Integer, Decimal, Currency, Percent or custom formats such as $#,###.00.
  • Number Precision - control how many decimal places are displayed for numbers.
  • Tool Tip – provides mouse over help to the user in the use of the field.
  • Align - control the justification of the text within the field.
  • Custom HTML Tag - Use this field for additional attributes to the field HTML tag. For Example: style="background-color=00ff00" or onfocus="this.value='Populate this text in field when selected'"

Permissions & Availability

Access to a custom field is controlled by role based permissions.

To access the Role and Status access settings click on the Permissions & Availability tab next to the General Settings.

link:

Field permissions can be controlled by role and by status.

  • Allow View Field – If you associate this setting with roles, then the field will only be displayed to people with these roles. If you leave this field blank, then everyone will be able to see the field.
  • Allow Modify Field – If you associate this setting with roles, then the field will only be modifiable by people with these roles. If you leave this field blank, then everyone will be able to modify the value on the field.
  • Deny View Field – If you associate this setting with roles, then the field will not be displayed to people with these roles. If you leave this field blank, then everyone will be able to see the field.
  • Deny Modify Field – If you associate this setting with roles, then the field will not be modifiable by people with these roles. If you leave this field blank, then everyone will be able to modify the value on the field.


Creating Custom Fields

1. Create the following fields for the employee role you have previously established:

Create.png

The completed field list will look as follows:

Creat17.png

2. Review an Employee record and set the fields as shown below:

Creat18.png

3. Select the Compensation fields.

Creat19.png