Different hover text for each matrix row?

  • Profile Image
    tommylessing
    Asked on March 17, 2012 at 07:39 AM

    I have questions in the survey matrix that need different descriptive tooltips, e.g. a list of diseases with a description of the disease when the mouse hovers over that entry in the matrix.  Any ideas how this can be accomplished?

  • Profile Image
    abajan
    Answered on March 17, 2012 at 08:33 AM

    Currently the only way to do that would be to embed the full source of the form into a web page and manually insert tooltips in each row.

    Using the default JotForm hover text element in this way may prove difficult but I'll see what I can come up with later today. (Of course, we could always just use HTML's title attribute if the other method isn't practical.)

  • Profile Image
    tommylessing
    Answered on March 17, 2012 at 08:46 AM

    Thank you, abajan. Adding an array of the title attribute in the same way that the rows and columns are added in the JotForm UI, may provide a quick solution. Appreciate your quick response.

  • Profile Image
    abajan
    Answered on March 18, 2012 at 01:31 AM

    It's kinda late here. So, I'll have try my hand at this tomorrow.

    Good Night.

  • Profile Image
    abajan
    Answered on March 18, 2012 at 07:50 PM

    Well, after much experimentation with hover texts, I think the best solution (at least for the time being) would be to simply insert a title attribute in each table row (tr) tag for which a tooltip is to appear, as illustrated on this form. Of course, the title attributes could also have been used in the table data (td) tags if you wanted to refer to specific check boxes.

    Perhaps if I give it some more thought, I might be able to come up with a speech bubble solution.

  • Profile Image
    tommylessing
    Answered on March 19, 2012 at 06:34 AM

    Thanks a lot! I agree that this seems to be the best solution for now. Appreciate your trouble.

  • Profile Image
    abajan
    Answered on March 19, 2012 at 06:50 AM

    That's quite alright, tommylessing. If I do come up with that "speech bubble" solution, I'll be sure to let you know.


    Cheers

  • Profile Image
    rhenusnetwork
    Answered on March 09, 2016 at 04:33 AM

    Hello,

    could you please explain how to prepare the HTML's title attribute?

    Thank you in advance!

  • Profile Image
    Boris
    Answered on March 09, 2016 at 05:00 AM

    @rhenusnetwork, in order to assist you better, and not to send unnecessary emails to the original poster of this thread, your question has been moved to a thread of its own:

    http://www.jotform.com/answers/790601

    We will assist you with it there, shortly. Thank you.