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

How to get select one in a dropdown list

  • August 10, 2020
  • 2 replies
  • 61 views

Forum|alt.badge.img+14

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

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • August 10, 2020

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);


Forum|alt.badge.img+14
  • Author
  • Level 3 ●●●
  • August 12, 2020

Thank you! Your code helped my coworker.