Make drag/drop box height = # of choices plus one | XM Community
Skip to main content
Solved

Make drag/drop box height = # of choices plus one

  • July 23, 2018
  • 5 replies
  • 53 views

Hi. I would like the drag and drop height to always be equal to the number of choices PLUS one blank space. It requires some dexterity for instance, to place a 5th choice at the bottom of a box that is the right height for four choices. How can I do this? JavaScript or CSS? If so, any code snippet would be greatly appreciated!

Best answer by TomG

@Tom_R, I think you can just make the bottom padding on the Groups the same height as a choice. For example: ``` .Skin .PGR .DragAndDrop td.groupsContainerTd div > div {padding-bottom: 25px} ```

5 replies

Emily
Qualtrics Employee
Forum|alt.badge.img+7
  • Qualtrics Employee
  • July 23, 2018
Hi @Tom_R! It looks like you may be asking about custom programming/code. We actually have a Developer Corner in the community that is reserved for these types of questions. Therefore, I have moved your question to that section instead so coders and programmers are more likely to answer your question. P.S. They might assume that you already have a basic knowledge of programming and how to integrate it into Qualtrics. If you do not, we recommend checking out W3Schools and our pages on Adding Custom CSS and Adding JavaScript to get a basic understanding!

  • Author
  • July 23, 2018
Thanks Emily!

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • July 23, 2018
@Tom_R, I think you can just make the bottom padding on the Groups the same height as a choice. For example: ``` .Skin .PGR .DragAndDrop td.groupsContainerTd div > div {padding-bottom: 25px} ```

mattyb513
Level 4 ●●●●
Forum|alt.badge.img+6
  • Level 4 ●●●●
  • July 25, 2018
I agree with @TomG - Padding is your best bet here since it maintains the same attributes for being a `.droppable()` section of the page

  • Author
  • August 22, 2018
THANKS!