How to get select one in a dropdown list | XM Community
Question

How to get select one in a dropdown list

  • 10 August 2020
  • 2 replies
  • 23 views

Userlevel 5
Badge +13

showing drop down list.jpgHow can I get it to say select One without using one of the choices? I would like it to be in the blank spot so they would have scroll down. Also how can I get the report that is emailed to use after they fill it out we spell out the departments for them but we would like only the three letters that stand for that department for us.


2 replies

Userlevel 7
Badge +22

Paste the below code in the JS of drop down question:
jQuery("#"+this.questionId+" select").find("option:eq(0)").text("Select one").attr("selected",true);

Userlevel 5
Badge +13

Thank you! Your code helped my coworker.

Leave a Reply