Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Adding spaces within a title object

Hi all!

We have an experiment in Jatos, and we need to modify one of the instructions for a task (IRI test). I've tried with <br> and \n but it didn't work. I am attaching the current code and output, as well as the output that I would like to achieve. I would appreciate any help. Thanks!

Current code:


"title": "Las siguientes declaraciones indagan sobre sus pensamientos y sentimientos en una variedad de situaciones. Para cada ítem, indique cuán bien la declaración lo/a describe: No me describe bien A ――― B ――― C ――― D ――― E Me describe muy bien. Lea cada ítem atentamente antes de responder. Intente ser lo más sincero/a posible.",


Current output:



https://mail.google.com/mail/u/0?ui=2&ik=88d5f796f0&attid=0.1&permmsgid=msg-a:r7478802178840933634&th=18d5aa9ab1f5b431&view=fimg&fur=ip&sz=s0-l75-ft&attbid=ANGjdJ-2xfiXgCzWubWqdKVbn_ltSLPCn5vidiL3uJ31FYTcevbH5JtmqWOYnYZi7XiTvnKDOqvPcdU2QALf5lkuR6mZH_WaBPyWrPnmeFg2Jvu_TRNrlUfXpqyiiSk&disp=emb&realattid=ii_ls0f98da0 There was an error displaying this embed.

Desired output:



1. Las siguientes declaraciones indagan sobre sus pensamientos y sentimientos en una variedad de situaciones. Para cada ítem, indique cuán bien la declaración lo/a describe: 


No me describe bien A ――― B ――― C ――― D ――― E Me describe muy bien. 


Lea cada ítem atentamente antes de responder. Intente ser lo más sincero/a posible.


Comments

  • Hi, if you're doing this with OSWeb, you should ask in their forum, as this is purely a front-end side question.

    I'll move your question there.

  • Hi @bkogan86,

    Can you clarify what kind of object contains that text? inline_javascript? inline_html? Something else?

    Fabrice.

    Buy Me A Coffee

  • Hi @Fab ,

    Thanks for your reply!

    How can I recognize which type of inline is? On the other hand, could it be possible to add html to the title so it renderizes instead of replacing the tags for symbols? Find below the current part of the code:


    <body>

        <div id="demographics"></div>


        <script>

            jatos.onLoad(function () {


                Survey.Survey.cssType = "bootstrap";

                Survey.defaultBootstrapCss.navigationButton = "btn btn-green";

                window.survey = new Survey.Model({

                    pages: [{

                        questions: [{

                                    "type": "matrix",

                                    "name": "iries",

                                    "title": "Las siguientes declaraciones indagan sobre sus pensamientos y sentimientos en una variedad de situaciones. Para cada ítem, indique cuán bien la declaración lo/a describe: No me describe bien A ――― B ――― C ――― D ――― E Me describe muy bien. Lea cada ítem atentamente antes de responder. Intente ser lo más sincero/a posible.",

Sign In or Register to comment.