- Posts: 8
- Thank you received: 0
Centering "No Answer" Radio Button Option
4 years 5 months ago - 4 years 5 months ago #101282
by abryenton
Last Edit: 4 years 5 months ago by abryenton.
Please Log in or Create an account to join the conversation.
4 years 5 months ago #101294
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
tpartner replied the topic: Centering "No Answer" Radio Button Option
In LS 2.0, that <td> element has a class "noanswer-item".
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in or Create an account to join the conversation.
4 years 5 months ago #101296
by abryenton
abryenton replied the topic: Centering "No Answer" Radio Button Option
We are currently using Limesurvey 1.87.
How would I go about adding that class to that element in this version?
Thanks!
Aaorn
How would I go about adding that class to that element in this version?
Thanks!
Aaorn
Please Log in or Create an account to join the conversation.
4 years 5 months ago #101297
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
tpartner replied the topic: Centering "No Answer" Radio Button Option
I can't test on a version that old but try adding this to the end of template.js:
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('.array-flexible-row input.radio[value=""]').closest('td').addClass('noanswer-item');
});
</script>
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in or Create an account to join the conversation.
4 years 5 months ago #101299
by abryenton
abryenton replied the topic: Centering "No Answer" Radio Button Option
That's awesome!! Thank you so much!
It didn't work in the template.js so I just added it to the startpage.pstpl and it worked great!
Thanks again!
Aaron
It didn't work in the template.js so I just added it to the startpage.pstpl and it worked great!
Thanks again!
Aaron
Please Log in or Create an account to join the conversation.
4 years 5 months ago #101300
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
tpartner replied the topic: Centering "No Answer" Radio Button Option
Oops, sorry, my mistake - you don't need the enclosing <script> tags in template.js.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in or Create an account to join the conversation.
4 years 5 months ago #101302
by abryenton
abryenton replied the topic: Centering "No Answer" Radio Button Option
Not a problem, thanks again for the help! Much appreciated.

Please Log in or Create an account to join the conversation.