1

I tried to add "Placeholder attribute into a combobox. I have either an error or It does not work :(

NOTE: I use bootstrap 3.2.0

<xp:comboBox id="dRes" value=" {document1.dRes}">
<xp:this.attrs>
<xp:attr name="placeholder" value="Select a value"> </xp:attr>
</xp:this.attrs>
</xp:comboBox>
Cumhur Ata
  • 809
  • 6
  • 18

1 Answers1

2

No that will not work, the 'placeholder' of a combobox is the first item of the combobox or the selected value

  • As Frank says - For me, I always compute the first value of my combo's to be something like If you need to do validation to make sure an option has been selected, then instead of checking for "" or null, I simply do a check to make sure the value is not – Chris Richards Sep 26 '16 at 09:26