Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WDESIGNER and version 24.0
Page properties
idform_elements_general
Element

Icon

Description

The developer determines the contents of a Select Field. The user can later choose one of the options in the list.

TypeString
Prepopulation
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameprepopulation_yes
DisableCachingtrue
PageWithExcerptINTERNAL:_designer_excerpts
Editing
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameform_elements_editing
DisableCachingtrue
PageWithExcerptINTERNAL:_designer_excerpts

Configuration Options

Use the Attributes panel to edit the form element.

Page properties
idform_element_attributes
AttributeDescriptionAllowed Values
Name
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameform_elements_name
PageWithExcerptINTERNAL:_designer_excerpts
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameform_elements_name_value
DisableCachingtrue
PageWithExcerptINTERNAL:_designer_excerpts
Description
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameform_elements_description
PageWithExcerptINTERNAL:_designer_excerpts
Any string.
Label
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameform_elements_label
PageWithExcerptINTERNAL:_designer_excerpts
Any string.
Mandatory
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameform_elements_mandatory
PageWithExcerptINTERNAL:_designer_excerpts
true
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameform_elements_mandatory_true
PageWithExcerptINTERNAL:_designer_excerpts
false
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameform_elements_mandatory_false
PageWithExcerptINTERNAL:_designer_excerpts
Read-only
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameform_elements_read-only
PageWithExcerptINTERNAL:_designer_excerpts
true
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameform_elements_read-only_true
PageWithExcerptINTERNAL:_designer_excerpts
false
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameform_elements_read-only_false
PageWithExcerptINTERNAL:_designer_excerpts
Options

Click to open the Field Configuration editor where you can define the contents of the select field.

Any string.
Vertical Alignment
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameform_elements_vertical_alignment
PageWithExcerptINTERNAL:_designer_excerpts
Top
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameform_elements_vertical_alignment_top
PageWithExcerptINTERNAL:_designer_excerpts
Center
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameform_elements_vertical_alignment_center
PageWithExcerptINTERNAL:_designer_excerpts
Bottom
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameform_elements_vertical_alignment_bottom
PageWithExcerptINTERNAL:_designer_excerpts
CSS Class
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameform_elements_cssClass
PageWithExcerptINTERNAL:_designer_excerpts

Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameform_elements_cssClass_value
PageWithExcerptINTERNAL:_designer_excerpts

Custom Attributes
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameform_elements_customerAttributes
PageWithExcerptINTERNAL:_designer_excerpts
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameform_elements_customerAttributes_values
PageWithExcerptINTERNAL:_designer_excerpts
Symbol Type
Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameform_elements_symbolType
PageWithExcerptINTERNAL:_designer_excerpts

_

Field Configuration Editor

Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNamefield_config_editor
DisableCachingtrue
PageWithExcerptINTERNAL:_designer_excerpts_big
shouldDisplayInlineCommentsInIncludesfalse

Setting the Default Value of a Select Field

Sometimes you might want to set the default value of a select field, so that the field is not empty when displayed on the form.

There are two options to set the default value of a select field:

Info

If you set both values in the mapping diagram, defaultKey takes priority over the field value. In that case, the value of defaultKey is displayed as the default value for the select field in the executed form.

Via the Property defaultKey

The defaultKey defines the number of the select field entry that should be displayed as the default value in the executed form. You can use this option for fixed and dynamic lists if you always want the value of a specific position in the list to be displayed as the default value. With dynamic lists, however, it usually only makes sense to always select the first position of the list as the default value. 

Image Added

Assign a list position number to the property defaultKey, for example via a literal as in the example on the left. The value of this list position is then displayed as the default value in the select field of the executed form.

Info

The select field entry list always starts with the number 0.

Via the Field Value

The field value defines the value of the select field entry that should be displayed as the default value in the executed form. Select this option for a dynamic list if the content of a specific element of the list should always be displayed as the default value.

Image Added

In the example on the left, the default value to be displayed in the executed form is assigned via the field value Customer ID:

Field Value (Customer ID)Label (displayed default value)
0001Rose Bloom
0002Adam Sun
0003Liv Falls
0004John Snow
Panel
titleOn this Page:
Table of Contents
OtpFloatingfalsemaxHLevel2

Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameSimple_Form_Example
PageWithExcerptINTERNAL:_designer_examples

Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNameUseLib_CustomerData_Example
PageWithExcerptINTERNAL:_designer_examples
shouldDisplayInlineCommentsInIncludesfalse

rp
Panel
titleRelated Pages: