Remove zeros from matrix table user view

rose_brose_b Manchester, UKCommunity Member - Trial User Qubie ✭

Remove zeros from matrix table user view

Hi all!

Is there a way to remove the zeros from the user's view of a matrix table? I have a large(ish) constant sum matrix table as I'm collecting workforce demographic data and a whole load of zeros looks quite overwhelming on the screen. Is there a way to have the input cells as blank boxes?

Thanks :)


Best Answers

  • [Deleted User][Deleted User] Qubie ✭
    Accepted Answer

    Hello @rose_b ,

    This can be achieved through java script.
    1. Get the id of the input box- In the preview mode of the question, do inspect element(ctrl+shift+C for chrome) and get the id of the input box (marked with arrow).
    As shown in the below image

    1. Go to the add java script option of the constant sum matrix question and add the following line in the on load function :

    2. Repeat step step 1 and 2 for every input box. see the image below

    3. Once this is done you will see blank input options as shown in the below image

    Please let me know if you have any problem in implementing this.

  • TomGTomG Raleigh, NC Wizard ✭✭✭✭✭
    edited August 2018 Accepted Answer


    While the solution given by @Shashi works, that is really the hard way. The following is one line and you don't have to look anything up.

    Qualtrics.SurveyEngine.addOnload(function() {
        jQuery("#"+this.questionId+" td input[type=text]").val("");


Sign In to Comment