Difference between revisions of "Stored value"

From SmartWiki
Jump to: navigation, search
(Replaced content with "{{StoredValue}} ==See Also== * Custom Field Language Settings Category:Custom Fields")
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
If you want the value stored in a [[custom fields|custom field]] to be different from what is displayed in the combo box, you can use the following syntax in the ''Values'' section of the custom field settings:
+
{{StoredValue}}
  
<pre style="white-space: pre-wrap;
 
white-space: -moz-pre-wrap;
 
white-space: -pre-wrap;
 
white-space: -o-pre-wrap;
 
word-wrap: break-word;">StoreValue1=DisplayValue1;StoreValue2=DisplayValue2;StoreValue3=DisplayValue3;</pre>
 
  
The value before the equals sign will be stored. The value after the equals sign is what will be displayed in the combo box (or check boxes), but does not get saved.
+
==See Also==
 +
* [[Custom Field Language Settings]]
 +
 
 +
[[Category:Custom Fields]]

Latest revision as of 13:02, 25 June 2014

If you want the value stored in a Dropdown List field to be different from what is displayed in the combo box, you can use the following syntax in the Values section of the custom field settings:

StoreValue1=DisplayValue1;StoreValue2=DisplayValue2;StoreValue3=DisplayValue3;
  • The value before the equals sign, known as the stored value, will be stored.
  • The value after the equals sign, known as the display value, is what will be displayed in the combo box (or check boxes), but does not get saved.

By default, the stored value is shown when fields are referenced in List Views. Selecting the Show Display Value in List Views option in the custom field settings will display the display value.


See Also