Changes

Custom Field Type: Select One – Combo Box

110 bytes added, 18:23, 4 September 2018
#REDIRECT [[Custom Field Type: Select One - Dropdown List]]
==General Description==
Displays as a set of values in a combo box. The [[User|user]] can select a single value. The size of scrolling window is controlled by the '''Height Setting'''.
Displays as a set of values in a combo box. The [[User|user]] can select a single value. The size of scrolling window is controlled by the '''Height Setting'''.
 ==Field Display==
[[Image:cf_socb_ex1.png]]<br />
'' '''Select One - Combo Box''' field, in '''Edit Mode''' (above)''<br />
<br />
[[Image:cf_socb_ex2.png]]<br />
'' '''Select One - Combo Box''' field, in '''View Mode''' (above)''<br />
<br />
[[Image:cf_socb_ex3.png]]<br />
'' Setting the values for the '''Select One - Combo Box''' field, in '''General Settings''' (above)''
<br />
{{FieldOptions}}
{{ParentField}}
 
* '''Values''': The values to be used for each check box delimited by a semi-colon with no spaces
{{ToolTip}}
{{SmartFieldView}}
{{OptionsTab}}
{{AllowEmpty}}
{{AppearMandatory}}
{{Searchable}}
{{Formatting}}
{{CaptionStyle}}
 
* '''Width''': Enables the user to set the width of the Lookup field in pixels
{{CustomHTMLTag}}
 
{{CFPermissionsTab}}
 
==Referencing the Value==
 :<span style="font -size="3: medium;">'''@''fieldname''@''' </fontspan>:<span style="font -size="3: medium;">'''@''fieldname''.combovalue@''' </fontspan>or :<span style="font -size="3: medium;">'''@#''fieldid''#@''' </fontspan>:<span style="font -size="3: medium;">'''@#''fieldid''.combovalue#@''' </fontspan>
When trying to reference the values of this custom field type, you must use '''@fieldname@''' or '''@fieldname.combovalue@''', depending on how the field is setup. Typically, you can use @fieldname@ but there is a special case where you must use @fieldname.combovalue@ when the values in the combo box are 1=Yes;2=No;3=Maybe.
 
Using @fieldname@ will return the Yes, No, or Maybe. But using @fieldname.combovalue@ will return 1, 2, or 3.
==Notes==
{{StoredValue}}
{{StoredValue}}
* The first value listed will be the default value when a new record is created.
* This technique is important when translating to other languages. The '''StoreValue''' must be the same in all languages. See [[Custom Field Language Settings|here]] for further information.
0
edits