How to add a vertical line before last column in a multiple choice question with horizontal layout?

ankank Community Member - Trial User Qubie ✭

How to add a vertical line before last column in a multiple choice question with horizontal layout?

Hello Community,

I have a multiple choice question with horizontal layout of the options. The last option is "Don't know". I want to add a vertical line before this option on the left side. I searched the internet and tried couple of options, but no success so far. Can anybody please help.

Thanks,
Ank

Best Answer

  • TomGTomG Raleigh, NC Wizard ✭✭✭✭✭
    Accepted Answer

    Add this CSS to the question text:

    <style>
    @media only screen and (min-width:481px) {
    td:last-of-type { border-left: 1px solid grey; }
    td:last-of-type label { margin-left:10px; }
    }
    </style>
    

    Adjust border-left and margin-left properties as needed.

Answers

  • ankank Community Member - Trial User Qubie ✭

    Thank you @TomG , it worked perfectly.
    Thanks,
    Ank

  • MAYA3MAYA3 Community Member Qubie ✭

    Thank you.
    Is there an option to do this vertical line, but just on one of my matrix questions in the survey?
    I don't want it to affect the other matrix questions.

  • TomGTomG Raleigh, NCCommunity Member, Product Ideas Wizard ✭✭✭✭✭
    edited October 17

    @MAYA3 said:
    Thank you.
    Is there an option to do this vertical line, but just on one of my matrix questions in the survey?
    I don't want it to affect the other matrix questions.

    Use this JS:
    https://gist.github.com/marketinview/cd5d385d8803124078a0

  • MAYA3MAYA3 Community Member Qubie ✭

    Thanks.
    When I'm trying to paste this JS on the question script, it writes the message attached below. What should I do?

  • MAYA3MAYA3 Community Member Qubie ✭
    edited October 27

    Thanks!> @TomG said:

    @MAYA3 said:
    Thank you.
    Is there an option to do this vertical line, but just on one of my matrix questions in the survey?
    I don't want it to affect the other matrix questions.

    Use this JS:
    https://gist.github.com/marketinview/cd5d385d8803124078a0

    Hi,
    I will highly appreciate your help in solving it.

  • TomGTomG Raleigh, NCCommunity Member, Product Ideas Wizard ✭✭✭✭✭

    @MAYA3 said:
    Thanks.
    When I'm trying to paste this JS on the question script, it writes the message attached below. What should I do?

    That error is unrelated to the script. It appears you have an Internet connectivity issue.

Sign In to Comment