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

How to get select one in a dropdown list

  • Aug 10, 2020 11:25 AM UTC
  • 2 replies
  • 92 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 ●●●●●●
  • Aug 10, 2020 11:43 AM UTC

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 ●●●
  • Aug 12, 2020 12:55 PM UTC

Thank you! Your code helped my coworker.