Difference between revisions of "Stored value"

From SmartWiki
Jump to: navigation, search
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:
+
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:
  
 
<pre style="white-space: pre-wrap;  
 
<pre style="white-space: pre-wrap;  
Line 7: Line 7:
 
  word-wrap: break-word;">StoreValue1=DisplayValue1;StoreValue2=DisplayValue2;StoreValue3=DisplayValue3;</pre>
 
  word-wrap: break-word;">StoreValue1=DisplayValue1;StoreValue2=DisplayValue2;StoreValue3=DisplayValue3;</pre>
  
The value before the equal sign will be stored. The value after the equal sign is what will be displayed in the combo box (or check boxes), but does not get saved.
+
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.

Revision as of 12:57, 25 July 2013

If you want the value stored in a 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:

StoreValue1=DisplayValue1;StoreValue2=DisplayValue2;StoreValue3=DisplayValue3;

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.