FeatureForm editing issue - 4.23 version

491
1
Jump to solution
03-30-2022 05:48 AM
MarkosK
New Contributor II

Nullable fields with codded value domains do not show "No Value" option in the dropdown list

Layer: TestPoint (ID: 0) (dc.gov)

Here is a working example: https://codepen.io/markoskifle/pen/rNepRzN?editors=1000

 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
HeatherGonzago
Esri Contributor

Hi, this is actually working as expected. If you have null values within your field. By default, it is not supposed to show a label, rather empty like you are seeing now. In 4.22, it automatically added this (this was the actual bug), if you wish to show a label, you will need to set it in the form's field input like this,

input: {
     type: "combo-box",
     showNoValueOption: true,
     noValueOptionLabel: "No value"
}

 I've updated the codepen with this as well, https://codepen.io/hgonzago/pen/RwxZLqB?editors=1000

HeatherGonzago_0-1648657083551.png

 

View solution in original post

1 Reply
HeatherGonzago
Esri Contributor

Hi, this is actually working as expected. If you have null values within your field. By default, it is not supposed to show a label, rather empty like you are seeing now. In 4.22, it automatically added this (this was the actual bug), if you wish to show a label, you will need to set it in the form's field input like this,

input: {
     type: "combo-box",
     showNoValueOption: true,
     noValueOptionLabel: "No value"
}

 I've updated the codepen with this as well, https://codepen.io/hgonzago/pen/RwxZLqB?editors=1000

HeatherGonzago_0-1648657083551.png