Changes

Jump to: navigation, search

Custom Field Type: Select One - Dropdown List

6,668 bytes added, 16:37, 23 November 2018
no edit summary
<br />
<br />
{{<!--<span class="mceNonEditable template" id="bs_template:@@@TPL0@@@" data-bs-name="FieldOptions" data-bs-type="template" data-bs-id="0"><span class="mceNonEditable template" id="bs_template:@@@TPL0@@@" data-bs-name=" FieldOptions" data-bs-type="template" data-bs-id="0"><span class="mceNonEditable template" id="bs_template:@@@TPL0@@@" data-bs-name=" FieldOptions" data-bs-type="template" data-bs-id="0"><span class="mceNonEditable template" id="bs_template:@@@TPL0@@@" data-bs-name=" FieldOptions" data-bs-type="template" data-bs-id="0"><span class="mceNonEditable template" id="bs_template:@@@TPL0@@@" data-bs-name=" FieldOptions" data-bs-type="template" data-bs-id="0"><span class="mceNonEditable template" id="bs_template:@@@TPL0@@@" data-bs-name=" FieldOptions}}{| " data-bs-type="template" data-bs-id="0"><span class="wikitablemceNonEditable template" id="bs_template:@@@TPL0@@@" data-bs-name=" FieldOptions" data-bs-type="template"|data-bs-! styleid="0"><span class="mceNonEditable template" id="widthbs_template: 125px; text@@@TPL0@@@" data-alignbs-name=" FieldOptions" data-bs-type="template" data-bs-id="0"><span class="mceNonEditable template" id="bs_template: left;@@@TPL0@@@"|Predefined Options||The values you want to be listed within your dropdown list, delimited by semidata-bs-colons with no spaces.|name=" FieldOptions" data-||Notes||* The first value listed will be the default value when a new record is created.* If you want the value ''stored'' in the field to be different from what is ''displayed'' in the combo box you can use the following syntax in the '''Values''' sectionbs-type="template" data-bs-id="0"><span class="mceNonEditable template" id="bs_template: ''StoreValue1@@@TPL0@@@" data-bs-name=DisplayValue1;StoreValue2" FieldOptions" data-bs-type=DisplayValue2;StoreValue3"template" data-bs-id=DisplayValue3;* The value '''before''' the equal sign will be stored. The value '''after''' the equal sign is what will be displayed in the combo box, but does not get saved. (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">{{ FieldOptions }}</span></span></span></span></span></span></span></span></span></span>-->
==Field Options==All common options:<br />[[Custom Fields - General Information #General_Settings|General Settings]]<br />[[Custom Fields - General Information #Role Field Permissions and Status Field Permissions|Permissions & Availability]]<br />[[Custom Fields - General Information #Classic Options|}Classic Options]]<br />{{Display}}For further information, please refer to [[Custom Fields – General Information]].<br /><br />{{Validation}}Options listed below are specific to this particular field type.
==Feature Options=={| class="wikitable"|* '''Parent Field''' -!|Option!|Description!|Format|* '''Predefined Options''' -The values you want to be listed within your dropdown list, delimited by semicolons with no spaces.! style="widthHere are a few things to note: 125px; text-align: left;"|Track Changes<br />||-1. The first value listed will be the default value when a new record is created.<br />||2. If you want the value ''stored'' in the field to be different from what is ''displayed'' in the combo box you can use the following syntax in the '''Predefined Options''Not Applicable'section: <br />'|-! style'StoreValue1=DisplayValue1;StoreValue2="width: 125pxDisplayValue2; text-align: leftStoreValue3=DisplayValue3;"|Show Display Value <br />3. The value '''before''' the equal sign will be stored. The value '''after''' the equal sign is what will be displayed in the combo box, but does not get saved. (This technique is important when translating to other languages. The '''StoreValue''' must be the same in List Views|all languages. See [[Custom Field Language Settings|-here]] for further information.)||* '''Enable as Attributes'Not Applicable''|}-
<!--<span class="mceNonEditable template" id="bs_template:@@@TPL1@@@" data-bs-name="Display" data-bs-type="template" data-bs-id="1"><span class="mceNonEditable template" id="bs_template:@@@TPL1@@@" data-bs-name=" Display" data-bs-type="template" data-bs-id="1"><span class="mceNonEditable template" id="bs_template:@@@TPL1@@@" data-bs-name=" Display" data-bs-type="template" data-bs-id="1"><span class="mceNonEditable template" id="bs_template:@@@TPL1@@@" data-bs-name=" Display" data-bs-type="template" data-bs-id="1"><span class="mceNonEditable template" id="bs_template:@@@TPL1@@@" data-bs-name=" Display" data-bs-type="template" data-bs-id="1"><span class="mceNonEditable template" id="bs_template:@@@TPL1@@@" data-bs-name=" Display" data-bs-type="template" data-bs-id="1"><span class="mceNonEditable template" id="bs_template:@@@TPL1@@@" data-bs-name=" Display" data-bs-type="template" data-bs-id="1"><span class="mceNonEditable template" id="bs_template:@@@TPL1@@@" data-bs-name=" Display" data-bs-type="template" data-bs-id="1"><span class="mceNonEditable template" id="bs_template:@@@TPL1@@@" data-bs-name=" Display" data-bs-type="template" data-bs-id="1"><span class="mceNonEditable template" id=Value Storage"bs_template:@@@TPL1@@@" data-bs-name=" Display" data-bs-type="template" data-bs-id="1"><span class="mceNonEditable template" id="bs_template:@@@TPL1@@@" data-bs-name=" Display" data-bs-type="template" data-bs-id="1">{{ Display }}</span></span></span></span></span></span></span></span></span></span></span>{| <span class="mceNonEditable template" id="bs_template:@@@TPL2@@@" data-bs-name="Validation" data-bs-type="template" data-bs-id="2"><span class="mceNonEditable template" id="bs_template:@@@TPL2@@@" data-bs-name=" Validation" data-bs-type="template" data-bs-id="2"><span class="mceNonEditable template" id="bs_template:@@@TPL2@@@" data-bs-name=" Validation" data-bs-type="template" data-bs-id="2"><span class="mceNonEditable template" id="bs_template:@@@TPL2@@@" data-bs-name=" Validation" data-bs-type="template" data-bs-id="2"><span class="mceNonEditable template" id="bs_template:@@@TPL2@@@" data-bs-name=" Validation" data-bs-type="template" data-bs-id="2"><span class="mceNonEditable template" id="bs_template:@@@TPL2@@@" data-bs-name=" Validation" data-bs-type="template" data-bs-id="2"><span class="mceNonEditable template" id="bs_template:@@@TPL2@@@" data-bs-name=" Validation" data-bs-type="template" data-bs-id="2"><span class="mceNonEditable template" id="bs_template:@@@TPL2@@@" data-bs-name=" Validation" data-bs-type="template" data-bs-id="2"><span class="mceNonEditable template" id="bs_template:@@@TPL2@@@" data-bs-name=" Validation" data-bs-type="template" data-bs-id="2"><span class="mceNonEditable template" id="bs_template:@@@TPL2@@@" data-bs-name=" Validation" data-bs-type="template" data-bs-id="2"><span class="wikitablemceNonEditable template" id="bs_template:@@@TPL2@@@" data-bs-name=" Validation" data-bs-type="template" data-bs-id="2"|>{{ Validation }}</span></span></span></span></span></span></span></span></span></span></span>-->!|Option==Referencing the Value==!|Description!|Format|: <span style="font-size: medium;">'''@''fieldname''@''' </span>! : <span style="width: 125px; textfont-alignsize: leftmedium;"|From Custom Field(s)||-||>'''@''fieldname''.combovalue@'Not Applicable''</span>|-or! : <span style="widthfont-size: 125pxmedium; text">'''@#''fieldid''#@''' </span>: <span style="font-alignsize: leftmedium;"|To >'''@#''fieldid''.combovalue#@''' </span>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.<br />Using @''fieldname''.value@ will display the full HTML of the field; in other words, a dropdown box containing the values of the field will be displayed.==Notes==<!--<u>'''Allow Empty'''</u> Because the values in a Combo Box Custom Fieldare restricted to the semi-colon delimited list in the '''Values''' field, the '''Allow Empty''' field has a slightly different behaviour than usual. It controls whether or not the record can be saved with the default value (which is the first value listed in the '''Values''' section): * If '''Allow Empty''' is checked, the record '''can''' be saved with the default value.* If '''Allow Empty''' is '''not''' checked, the record '''cannot''' be saved with the default value. In this way you can force the user to select a value different from the default value.||* '''Important''': Because the record cannot be saved with the default value, the first item listed in the '''Value''' section should be either a space followed by a semi-||colon (if you want the field to start out blank) or an instruction to the user such as ''-----Select One-----''; ''Please choose''; or similar. You do not want an actual value as the first item, since the record can never be saved with the first value if '''Allow Empty'Not Applicable''is deselected.-->|{{RetiredOptions}}
[[Category:Custom Fields]]
[[Category:Custom Field Types]]
Smartstaff, administrator
421
edits

Navigation menu