Welcome to the LimeSurvey Community Forum

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

Changing Bootstrap bouton question

More
1 year 5 months ago #258721 by Joffm
Hi,

Hi,

enter the changed values into your question

but you entered the css script into the subquestion text.

And add the mybtn to the css classes.

I wrote this to make clear that you enter the css definition into your question text (in source code mode), instaed of the subquestion text (what you did before).

And into css classes you only enter mybtn, these five characters

Joffm

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

Please Log in to join the conversation.

More
1 year 5 months ago #258726 by Bti2024
Hi Joffm, Still doesnt change the bootstrap probably be I did it the wrong way again? please see the screenshot

Please Log in to join the conversation.

More
1 year 5 months ago #258727 by Joffm
I do not see any screenshot.
Anyway: It's better you send the lss export.

Joffm

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

Please Log in to join the conversation.

More
1 year 5 months ago #258729 by Bti2024
Sorry find attached the screenshot and the iss file.Thanks
More
1 year 5 months ago #258770 by Joffm
And this is what I see


So it seems you have no rights to insert this.
Probably the XSS filter is set to "ON".
Are you a "superadmin", or a "normal" admin?

You may have to ask the admin of the instrallation.

Joffm

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

Please Log in to join the conversation.

More
1 year 5 months ago - 1 year 5 months ago #258802 by Bti2024
Hi Joffm,

Thanks. I am a normal admin.Could you please show where to change this parameter?
Last edit: 1 year 5 months ago by Bti2024.

Please Log in to join the conversation.

More
1 year 5 months ago #258803 by tpartner

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
1 year 5 months ago #258827 by Joffm
Hi, another - maybe stupid question.
But I don't ask without reason because I several times missed that.

After you entered the script into the source code you clicked "OK" at the bottom.
Did you also click "Save" to save the question?

Joffm
 

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

Please Log in to join the conversation.

More
1 year 5 months ago #258873 by DenisChenu
Seems there are XSS protection.

@Bti2024 do you hjave access to template/theme ?

If not : you must view with your administrator

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

More
1 year 5 months ago - 1 year 5 months ago #258899 by Bti2024
Hi, Joffm, Yes I clicked on Save but if I switch to another question and come cack to this question its code source disapear!
Last edit: 1 year 5 months ago by Bti2024.

Please Log in to join the conversation.

More
1 year 5 months ago - 1 year 5 months ago #258900 by Bti2024
Hi DenisChenu [url=https://template/theme], [/url]yes I have access to template/theme
Last edit: 1 year 5 months ago by Bti2024.

Please Log in to join the conversation.

More
1 year 5 months ago #258901 by Joffm
Yes, you have no rights, meaning the XSS filter is ON.
You have to ask the admin.

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

Please Log in to join the conversation.

More
1 year 5 months ago #258902 by Bti2024
Ok, thanks ,I 'll check this admin parameter and feedback you

Please Log in to join the conversation.

More
1 year 5 months ago #258918 by DenisChenu
If you have access to theme
BEST solution :
Extend the theme and
Add
Code:
.mybtn .btn {
  padding: 26px 5px;
  line-height: 2.5;
  border-radius: 50%;
  width: 62%;
  margin-left: 19%;
  margin-top: 20px;
}.mybtn .btn-primary:active,.mybtn .btn-primary.active {   
    background-color: #76C1E2 !important;
    border-color: #76C1E2 !important;
}
.mybtn .btn-primary {
    background-color:maroon;
    border-color: #2473B9;
}
.mybtn .btn-primary:hover {
    background-color: green;
    border-color: #2473B9;
}
and any other update to custom.css

Add mybtn CSS Class on the question seetings where you need this button

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.

Please Log in to join the conversation.

More
1 year 5 months ago - 1 year 5 months ago #258944 by Bti2024
Hi DenisChenu,

Thanks for your feedback.
I have added the code in the custom.css file and set mybtn in Class css of the main question (see the attached picture)  , but still doesnt change the bootstrap shape (the bold parts are the existing code) :

/******************
    User custom CSS
   



    In this file you can add your own custom CSS
    It will be loaded last, so you can override any other property.
    Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
*/
/* Normal */

/* body{background : #C2DAFE }*/
 8#b3c9f8

// Variable overrides first
$primary: #900;
$enable-shadows: true;
$prefix: "mo-";

// Then import Bootstrap
/*@import ".C:\Backup\Sondages\Nouveau\Siège\En cours\new\awesome-bootstrap-checkbox.css";*/


.mybtn .btn {
  padding: 26px 5px;
  line-height: 2.5;
  border-radius: 50%;
  width: 62%;
  margin-left: 19%;
  margin-top: 20px;
}.mybtn .btn-primary:active,.mybtn .btn-primary.active {   
    background-color: #76C1E2 !important;
    border-color: #76C1E2 !important;
}
.mybtn .btn-primary {
    background-color:maroon;
    border-color: #2473B9;
}
.mybtn .btn-primary:hover {
    background-color: green;
    border-color: #2473B9;
}

.btn-primary {
    background-color: #5CB9EC;
    border-color: #5CB9EC;
}
.btn-primary:hover {
    background-color: #91DEF8;
    border-color: #91DEF8;
}
 
.btn-primary:active,
.btn-primary.active {
    background-color: #91DEF8 !important;
    border-color: #91DEF8 !important;
}


I have also login with admin user but cannot see where I can set the XSS filter(please  see the screenshot).

Regards

 
Last edit: 1 year 5 months ago by Bti2024.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose