- Messages : 17
- Remerciements reçus 0
- Forum
- English support forums
- Can I do this with LimeSurvey?
- customising the yes/no radio button when checked
customising the yes/no radio button when checked
- solte98
-
Auteur du sujet
- Hors Ligne
- Fresh Lemon
-
Réduire
Plus d'informations
il y a 6 mois 3 semaines #171871
par solte98
COM_KUNENA_MESSAGE_CREATED_NEW
Hi,
we are on limesurvey 2.67.2 and wondered if we can customize the yes/no radio button when clicked/checked.
We got this to work on the 5 choices:
.choice-5-pt-radio .radio-item:nth-of-type(3) input[type="radio"]:checked + label {
background:url('images/radio3_hover.png') left top no-repeat;
}
.choice-5-pt-radio .radio-item:nth-of-type(4) input[type="radio"] + label {
background:url('images/radio4.png') left top no-repeat;
}
BUT we cannot get it to work on the .yes-no when checked
.yes-no label:first-of-type {
width: 150px;
height: 103px;
margin: 0;
border-right: 1px solid #ccc;
background: url('images/radio_yes.png') left top no-repeat;
font-size:0;
padding:0;
float: left;
}
.yes-no label:first-of-type:checked {
background: url('images/radio_yes_hover.png') left top no-repeat;
}
we are on limesurvey 2.67.2 and wondered if we can customize the yes/no radio button when clicked/checked.
We got this to work on the 5 choices:
.choice-5-pt-radio .radio-item:nth-of-type(3) input[type="radio"]:checked + label {
background:url('images/radio3_hover.png') left top no-repeat;
}
.choice-5-pt-radio .radio-item:nth-of-type(4) input[type="radio"] + label {
background:url('images/radio4.png') left top no-repeat;
}
BUT we cannot get it to work on the .yes-no when checked
.yes-no label:first-of-type {
width: 150px;
height: 103px;
margin: 0;
border-right: 1px solid #ccc;
background: url('images/radio_yes.png') left top no-repeat;
font-size:0;
padding:0;
float: left;
}
.yes-no label:first-of-type:checked {
background: url('images/radio_yes_hover.png') left top no-repeat;
}
Connexion ou Créer un compte pour participer à la conversation.
- Joffm
-
- Hors Ligne
- LimeSurvey Community Team
-
Réduire
Plus d'informations
- Messages : 2155
- Karma: 43
- Remerciements reçus 692
il y a 6 mois 3 semaines #171873
par Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
COM_KUNENA_MESSAGE_REPLIED_NEW
Hi, solte98,
here are some threads about this.
Maybe they are helpful.
https://www.limesurvey.org/forum/can-i-do-this-with-limesurvey/112273-thumbs-up-down-questions
If you use the Yes/No question type:
https://www.limesurvey.org/forum/design-issues/114968-i-want-to-make-the-colors-of-yes-and-no-different-colors
www.limesurvey.org/forum/can-i-do-this-w...checked/reply/171871
https://www.limesurvey.org/forum/installation-a-update-issues/114443-color-modification-for-a-yes-no-question
Best regards
Joffm
here are some threads about this.
Maybe they are helpful.
https://www.limesurvey.org/forum/can-i-do-this-with-limesurvey/112273-thumbs-up-down-questions
If you use the Yes/No question type:
https://www.limesurvey.org/forum/design-issues/114968-i-want-to-make-the-colors-of-yes-and-no-different-colors
www.limesurvey.org/forum/can-i-do-this-w...checked/reply/171871
https://www.limesurvey.org/forum/installation-a-update-issues/114443-color-modification-for-a-yes-no-question
Best regards
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Connexion ou Créer un compte pour participer à la conversation.
- solte98
-
Auteur du sujet
- Hors Ligne
- Fresh Lemon
-
Réduire
Plus d'informations
- Messages : 17
- Remerciements reçus 0
il y a 6 mois 2 semaines #171959
par solte98
COM_KUNENA_MESSAGE_REPLIED_NEW
ah, ok... i have found out that the template was created in version 1.92? so the yes/no buttons that are in 2.65+ is not visible due to the template. it shows as a radio circle
Is there a way to have the template updated so it takes on the buttons?
Is there a way to have the template updated so it takes on the buttons?
Connexion ou Créer un compte pour participer à la conversation.
Réduire
Plus d'informations
- Messages : 7803
- Karma: 618
- Remerciements reçus 2288
il y a 6 mois 2 semaines #171961
par tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
COM_KUNENA_MESSAGE_REPLIED_NEW
When moving from 1.92 to 2.65, it would likely be easier to start fresh with a copy of one of the core templates. There were many HTML structure changes in the 2.5x and newer series.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Les utilisateur(s) suivant ont remercié: solte98
Connexion ou Créer un compte pour participer à la conversation.