Changes

Jump to: navigation, search

Advanced Custom Fields

22 bytes added, 21:06, 13 November 2007
no edit summary
==Overview==
In this article, you will add some additional [[Custom Fields|custom fields]] to the employee [[Role|role]]. The types of fields are widely used within [[SmartSimple]] and provide for versatile processing options.
* '''Multiple Document Field''' – Stores a document either created through the [[Custom Field Type (110): Display Only – Web Page View|Web Page View]] field or uploaded.
==Calculated Field==
You can use arithmetic, string, comparison operators and functions within the calculated [[Custom Field|custom field]].
* The calculations are performed when you click the '''Save''' button and save the page.
===Calculation Order on Page===
* Calculated field formulas are executed in the same order that the calculated fields are displayed on the page – left to right and top to bottom.
* You must not place fields that perform summary calculations based on other calculated fields ABOVE the subordinate calculations.
* If the fields are ordered in this manner saving the page will not update the summary calculation, as summary formula will be executed BEFORE the subordinate calculations are performed.
===Arithmetic Operators===
All values are treated as strings. For arithmetic operations, PARSEINT and PARSEFLOAT function are used to convert the string value to a numeric value.
* '''PARSEFLOAT([Salary]) / 26''' – Divides the Salary by 26 to show a bi-weekly amount.
===Adding a Calculated Field===
1. Add a [[Custom Field]] Type named '''Total Compensation''' to the '''Compensation''' tab.
[[Image:Advc7.png]]
==Web Page View Field==
The [[Custom Field Type (110): Display Only – 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 the following variables.
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'''.
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.
6. '''Close''' the Window.
===Document Options===
You control which options are available to the [[User|user]] of each [[Custom Field Type (110): Display Only – Web Page View|Web Page View]] field. Each of the selected options will add a button to the top of the [[Custom Field Type (110): Display Only – Web Page View|Web Page View]] field. The following example shows how the field will look with all options enabled:
6. '''Close''' the window.
==Using the Link – Multiple Files Field==
The final [[Custom Fields|custom field]] type will be the '''Multiple Files Field'''. This field stores multiple files into a single field and is used to store:
[[Image:Advs13.png]]
===Multiple Files Field Options===
The following options are available for this field type:
4,401
edits

Navigation menu