Changes

Jump to: navigation, search

Advanced Custom Fields

184 bytes added, 18:12, 19 September 2018
no edit summary
==Overview==
In this article, <!--you will add some additional [[Custom Fields|custom fields]] to the employee-->you will learn about <!--adding [[Custom Fields|custom fields]] to a [[Role|role]]-->three useful [[Custom Fields|custom field]] types. The These types of fields are widely used within [[SmartSimple]] and provide for versatile processing options.
* '''Calculated FieldFields''' – Executes Execute an expression to calculate a value and store the result in the field.
* '''Web Page View Field''' – Creates a document based on values stored in the underlying [[Entity|entity]] or entities.
* '''Upload - Multiple Files Storage''' – Stores a document either created through the [[Custom Field Type: Special - Web Page View| Web Page View]] field or uploaded.
==Calculated FieldFields==
You can use arithmetic, string, comparison operators and functions within the calculated [[Custom Field|custom field]].
===Adding a Calculated Field===
<!--1. Add a [[Custom Field]] named '''Total Compensation'''<!-- to the '''Compensation''' tab-->
2. Set the '''Field Type''' to '''Computed - Calculated Value'''.
The values are calculated and saved.
[[Image:Advc7.png]]-->
==Web Page View Field==
The [[Custom Field Type: Special - Web Page View|Web Page View]] field provides the ability to display a fully formatted document or web page. In constructing this type of field, HTML is used in conjunction with variables.
<!--In this example you will create a simple letter of offer, displaying the employee’s name and address plus details of their compensation.
1. Edit the '''Letter of Offer''' field – currently set to a '''Upload - Single File Storage''' field.
2. Change the '''Field Type''' to [[Custom Field Type: Special - Web Page View|Special - Web Page View]].
[[Image:Advc8.png]]-->The HTML Template is used to store the body of the document and will be a mix of HTML code, static text and references to fields associated with the underlying [[Entity|entity]] .<!-- – in this case the [[User|user]] [[Entity|entity]] and the employee [[Role|role]].-->
===Basic HTML Tags Required===
The following basic HTML tags should be added to the '''Web Page View'''.
[[Image:Advc.png]]
1. <!--Add the following -->Below is a sample HTML Template:<br />[[Image:Advc1.png]]<br />The Variables are shown in bold.<br />
Note the use of the “me” variable to reference the current [[User|user’s]] details.
<!--
2. '''Save''' the template.
* There are no options available for this document as you have yet to enable them.
5. '''Close''' the window.-->
===Suppressing Missing Fields===
A special tag is used to suppress any fields that are missing from the underlying [[Entity|entity]] - [[Image:Advc2.png]]. Placing this tag in front of any field that may not be present will suppress the display of the variable name.
<!--1. Display the '''Web Page View''' [[Custom Fields|custom field]]. 2. Add this tag before the '''@salutation@''' field. [[Image:Advc3.png]]
2. Add -->For example, if we add this tag before the '''@salutation@''' field and Save:<br />[[Image:Advc3.png]]<br /><!--3. Save the '''Web Page View''' Field.
4. Display an '''Employee''' record.
5. Click the '''Open''' button on the '''Letter of Offer''' field.-->The '''@salutation@''' field is suppressed.<br />
[[Image:Advc11.png]]
<!--6. '''Close''' the Window.-->
===Document Options===
You control which options are available to the [[User|user]] of each [[Custom Field Type: Special - Web Page View|Web Page View]] field. Each of the selected options will add a button to the top of the [[Custom Field Type: Special - Web Page View|Web Page View]] field. <!-- The following example shows how the field will look with all options enabled:
[[Image:Advc12.png]]-->
* '''Show Menu''' – check box that defines if a [[Menu|menu]] should be shown in the document window.
Smartstaff, administrator
421
edits

Navigation menu