Welcome to the LimeSurvey Community Forum

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

Customized Rotation for Check box & Radio Bottom

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 months 3 weeks ago #264099 by Joffm
Hi,
I did not understand the script in the "radio" question. This is to create "Headers" in a multiple question. I removed it.

So I do not see anything here except your double codes




 

File Attachment:

File Name: limesurvey...6173.lss
File Size:53 KB


Joffm
 

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

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 months 2 weeks ago #264255 by Joffm
I ask myself what is the reason for this?
Seeing the other script I assume you only want to create additional headers.
But that's much easier to achieve.
Code:
 <script type="text/javascript" charset="utf-8">
    $(document).ready(function() { 
        var SubHeading1="Header 1";
        var SubHeading2="Header 2";
        var thisQuestion = $('#question{QID}');
         // Insert sub-headings
        $('.checkbox-item:eq(0)', thisQuestion).before('<li class="inserted-sub-heading"><span class="myHeader">'+SubHeading1+'</span></li>');
        $('.checkbox-item:eq(4)', thisQuestion).before('<li class="inserted-sub-heading"><span class="myHeader">'+SubHeading2+'</span></li>');
    });
</script>
<style type="text/css">.myHeader {
    color:maroon;
    font-size:100%;
    font-weight:bold;
    background-color:#F8F8FF;
    border:1px solid #ccc;
    padding: 1px 5px;
  }
 

And in "single" questions "radio-item" instead of "checkbox-item"


And now something general:
All your questions - your bnext about the ccordinates - are obviously not related to "Installation and Update issue".
Please, use the correct section in the future

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

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose