Piped survey responses bring html formatting with them

Nadaly
Nadaly Community Member, Qualtrics Brand Admin Qubie ✭

I have some bolded key terms in some response options. At the end of the survey, I have a summary of responses that is populated using piped data. Here, I do not need those key terms to be in bold but the piped response brings the formatting with it. Is there a way to override this? For different reasons, I can not embed data or add branching midsurvey. I've tried overriding it by enclosing it in a

<

div font-weight="normal"> tag but no luck there. Other ideas?

Best Answer

  • TomG
    TomG Raleigh, NCCommunity Member, Qualtrics Brand Admin Wizard ✭✭✭✭✭
    Accepted Answer

    @Nadaly,

    You have to remove it with JavaScript or CSS. There are a number of different ways to make text bold in html. How you remove it depends on how it was put there in the first place. You'll need to inspect the code to determine how it needs to be removed.

    There is a good chance it is in a <strong> tag. In that case, you can add this to your Question Text html:

    <style>
    strong { font-weight: normal; }
    </style>
    

Answers

  • PeeyushBansal
    PeeyushBansal IndiaCommunity Member, XMPN Member, Qualtrics Brand Admin Wizard ✭✭✭✭✭

    You can enclose your piped text within html tags if this is happening.

  • Nadaly
    Nadaly Community Member, Qualtrics Brand Admin Qubie ✭
    edited September 2018

    @bansalpeeyush29 Could you please describe in more detail? I have tried some html coding but I haven't figured out exactly what to enclose it in to override the formatting. Thank you.

  • PeeyushBansal
    PeeyushBansal IndiaCommunity Member, XMPN Member, Qualtrics Brand Admin Wizard ✭✭✭✭✭

    So like if you want to bold it than going to html editor write like <b> your piped text </b>

  • Nadaly
    Nadaly Community Member, Qualtrics Brand Admin Qubie ✭

    @bansalpeeyush29 Thank you, but I don't think you are understanding my question. The survey response option that I am piping in has bold in it already to emphasize a key word in the original survey question. I want to eliminate the already bold text within the piped text when I show it later, but Qualtrics is bringing that formatting along.

  • PeeyushBansal
    PeeyushBansal IndiaCommunity Member, XMPN Member, Qualtrics Brand Admin Wizard ✭✭✭✭✭

    Refer post below, you can do manually in rich content editor also

    https://www.qualtrics.com/community/discussion/comment/5916#Comment_5916

  • Hello @Nadaly ,

    Assuming you have a descriptive text question for your summary.
    Add the following code in the js(OnReady) of that summary question

    jQuery('b').contents().unwrap();

    The above code will remove all the bold effect in that page.

  • Nadaly
    Nadaly Community Member, Qualtrics Brand Admin Qubie ✭

    @Shashi Thanks for the suggestion but this did not work for me either!