Usually, the "display value" displays in Select List LOVs (that's good). But occasionally, I see the "return value" in them. Why is that?When you have an LOV item that contains a value that does not exist in the supplied LOV data, and the 'Display Extra Values' property for that item is set to 'Yes', then those values will show in the page item. For example, if you have an LOV with the following options:
...and the item (presumably pulled from existing data) had a value of '5', then '5' would appear in the page item because nothing in the LOV tells Apex what else it should display.
DISP_VAL RET_VAL One 1 Two 2 Three 3 Four 4
The return value that is sometimes displayed is the correct return value that corresponds to the row previously selected via the LOV. To use your example data. I selected Four with the LOV, but then sometimes see "4" being displayed instead of "Four". Why is that?