Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

filling option circle to uncertain table' cells

  • qiangqi
  • qiangqi's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 months 2 weeks ago #243419 by qiangqi
Hi Joffm,

like you said, quotes are text rather than number. but in my questinaire, I set Order as an equation and compare it with quotes, but it works. does it means the type of equation is a text?

Best,
Qiang

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
11 months 1 week ago #243427 by Joffm
Okay,
what I supposed yesterday, is true.
If you have a look at the source code of the page in your browser you see that
In your table101 all columns of the last row are existing in the DOM; they are only hidden by class="hidden".
Code:
        <tr>
            <td class="tdchf"><img alt="" src="/lime5/upload/surveys/285277/images/question%20mark.png" style="height:25px; vertical-align:middle" /></td>
            <td class="tdch" style="vertical-align:middle;"><span style="color:#c0392b;"><strong><span style="font-size:14px;">Which request ?</span></strong></span></td>
            <td class="hidden" style="text-align:right;vertical-align:middle;">Yes   </td>
            <td class="hidden" style="vertical-align:middle; text-align:right;">No</td>
            <td class="hidden" style="text-align: left; vertical-align:middle;"> </td>
            <td class="hidden" style="text-align: right; vertical-align:middle;">Yes</td>
            <td class="hidden" style="vertical-align: middle; text-align: left;"> </td>
            <td class="hidden" style="text-align: right; vertical-align:middle;">No</td>
            <td class="hidden" style="text-align: left; vertical-align:middle;"> </td>
            <td class="tdc" style="text-align: right; vertical-align:middle;"> </td>
            <td class="tdc" style="text-align: center; vertical-align:middle;">Yes</td>
            <td class="tdc" style="text-align: left; vertical-align:middle;"> </td>
            <td class="tdc" style="text-align: center; vertical-align:middle;">No</td>
            <td class="tdc" style="text-align: left; vertical-align:middle;"> </td>
            <td class="hidden" style="text-align: right; vertical-align:middle;"> </td>
            <td class="hidden" style="text-align: center; vertical-align:middle;">Yes</td>
            <td class="hidden" style="text-align: center; vertical-align:middle;"> </td>
            <td class="hidden" style="text-align: right; vertical-align:middle;"> </td>
            <td class="hidden" style="text-align: center; vertical-align:middle;">No</td>
            <td class="hidden" style="text-align: left; vertical-align:middle;"> </td>
            <td class="hidden" style="text-align: right; vertical-align:middle;"> </td>
            <td class="hidden" style="text-align: right; vertical-align:middle;">Yes</td>
            <td class="hidden" style="text-align: right; vertical-align:middle;"> </td>
            <td class="hidden" style="text-align: right; vertical-align:middle;"> </td>
            <td class="hidden" style="text-align: center; vertical-align:middle;">No</td>
            <td class="hidden" style="text-align: center; vertical-align:middle;"> </td>
            <td class="hidden" style="text-align: center; vertical-align:middle;"> </td>
            <td class="tdc2" style="background-color:#DCDCDE;text-align: right;vertical-align:middle;"> <strong><span style="font-size:14px;"> </span></strong><span style="font-size:14px;">Yes</span></td>
            <td class="tdc2" style="background-color:#DCDCDE;"> </td>
            <td class="tdc2" style="background-color:#DCDCDE;text-align: right;vertical-align:middle;"> <strong><span style="font-size:14px;"> </span></strong><span style="font-size:14px;">No</span></td>
            <td class="tdc2" style="background-color:#DCDCDE;"> </td>
            <td class="tdnc" style="width:95px"> </td>
        </tr>

So you have to revise your equations.

By the way:
In your first script there were the two variables "v1" and "v2".
But in your lss I did not see them, but the four equations "EQ11" to "EQ14" which seem to be the same.

According to the quotes.
Usually php does the correct guess that a number surrounded by quotes is handled as a number.
But there might be situations like this
12 + 34 = 46 (addition of two numbers)
'12' + '34' = '1234' (joining of two texts)

and of course the comparison
numerical order is: 1,2,3,...9,10,11,12,...20,21,22,...
but as text it is: '1','10','11','12',...,'2','20','21','22',...;'3'
Please read this
[url] manual.limesurvey.org/ExpressionScript_-...numerical_comparison [/url]

And as said: Many of your equations are either superfluous or can be simplified.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose