I have a combo box in XPages for which I would like to have the default value as null and allow this to be validated.
I have tried adding a value with:
return “”
and
return null
However, these values are ignored as the first ‘real’ value in the list is displayed instead. Not what I want.
The only way I can get around the problem at the moment is to create a value and default value of:
return " " ← space between the speech marks
Looks great and works like a dream. The problem is now that I would like to, at times, validate this field with server-side validation. As there is a ‘value’ in the field it considers it complete.
Am I missing something obvious? Has anyone got any ideas how to get around this?
I see this post and now understand the difference between the ‘label’ and the 'value. However, when the source code is changed to return a value of “” that vanishes when you click in the ‘value’ box in the UI.
Any ideas? Apart from that, it’s just a case of don’t touch it after you’ve done it but not ideal!
…and it looks to be working as designed as DD expects that if you go into the source you must be an advanced user. However, maybe this warrants a bug report to not re-generate the null in the source.