Skip to main content
Answer

Dropdown repeated answers

  • April 29, 2021
  • 9 replies
  • 93 views

Hi how do I stop people choosing an option they have previously chosen?

Best answer by john.desborough

@Hels - this comes from a fellow community member - that is a very comprehensive set of questions

it took a while for me to get to the drop downs but here is how you might want to consider the restriction - this is just a suggestion and there are likely more elegant solutions but ..

  • Assume that the first dropdown question is question D1 (for ease of number) 
    • user selects a choice from D1 and goes to D2
    • user selects a choice from D2 and you use logic to determine if D1 and D2 are both the same selection 
      • if D1 = a1 AND D2=a1, then go to a statement page that says you already chose that one, please go back and choose another (repeat logic for all other choices in the list)
      • the statement page takes you back to D2
    • when user has two unique choices, let them go to D3
      • select choice 
      • If D3 =a1 AND D2=a1, then jump to another statement page that says you made a duplicate choice - go back to D3
      • if D3=a1 AND D1=a1, then ditto 

 

i created a little demo here  and is the logic flow diagram for that 

 

hope this helps 

des

9 replies

Liz
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • April 29, 2021

Hi @Hels thanks for stopping by the community! Are you asking the same question a few times? Or if you don’t mind sharing your form URL so I can take a look, that’d be great!


  • Author
  • Explorer
  • April 30, 2021

Hi Liz

This is the questionnaire.  It is the questions at the end where they have to choose their 5 choices.

Thank you for your help

 


vickioneill
Forum|alt.badge.img+5
  • Tastemaker
  • April 30, 2021

Hi @Hels ,

From a fellow community member - are you wanting to restrict someone from completing the same TF twice or are you wanting respondents to avoid seeing both of these messages?


john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • Answer
  • April 30, 2021

@Hels - this comes from a fellow community member - that is a very comprehensive set of questions

it took a while for me to get to the drop downs but here is how you might want to consider the restriction - this is just a suggestion and there are likely more elegant solutions but ..

  • Assume that the first dropdown question is question D1 (for ease of number) 
    • user selects a choice from D1 and goes to D2
    • user selects a choice from D2 and you use logic to determine if D1 and D2 are both the same selection 
      • if D1 = a1 AND D2=a1, then go to a statement page that says you already chose that one, please go back and choose another (repeat logic for all other choices in the list)
      • the statement page takes you back to D2
    • when user has two unique choices, let them go to D3
      • select choice 
      • If D3 =a1 AND D2=a1, then jump to another statement page that says you made a duplicate choice - go back to D3
      • if D3=a1 AND D1=a1, then ditto 

 

i created a little demo here  and is the logic flow diagram for that 

 

hope this helps 

des


vickioneill
Forum|alt.badge.img+5
  • Tastemaker
  • April 30, 2021

@Hels - this comes from a fellow community member - that is a very comprehensive set of questions

it took a while for me to get to the drop downs but here is how you might want to consider the restriction - this is just a suggestion and there are likely more elegant solutions but ..

  • Assume that the first dropdown question is question D1 (for ease of number) 
    • user selects a choice from D1 and goes to D2
    • user selects a choice from D2 and you use logic to determine if D1 and D2 are both the same selection 
      • if D1 = a1 AND D2=a1, then go to a statement page that says you already chose that one, please go back and choose another (repeat logic for all other choices in the list)
      • the statement page takes you back to D2
    • when user has two unique choices, let them go to D3
      • select choice 
      • If D3 =a1 AND D2=a1, then jump to another statement page that says you made a duplicate choice - go back to D3
      • if D3=a1 AND D1=a1, then ditto 

 

i created a little demo here  and is the logic flow diagram for that 

 

hope this helps 

des

Very logical and helpful, des! That makes complete sense. Nice job! 💪


Liz
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • April 30, 2021

This is so helpful, @john.desborough !! Thank you!


john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • April 30, 2021

This is so helpful, @john.desborough !! Thank you!

Thanks @Liz - the only thing that gets “awkward” about this approach is if you have a really long list and have to go through all the progressions lol.. 

the logic is simple, easy enough to do but when/if you had to do for 60 items in a drop down, the repetition of the “ logic would drive me nuts during the entry lol.. how many times do you really want to put in the ‘thou shall not pass” logic??

 

 


Liz
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • April 30, 2021

:joy: It would make my life if someone put this meme in their form. 


john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • April 30, 2021

:joy: It would make my life if someone put this meme in their form. 

done  @Liz