- Posts: 2
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Change "next" button to "I agree" button
- kosburn1114
- Topic Author
- Offline
- New Member
Less
More
12 years 1 month ago #75815
by kosburn1114
Change "next" button to "I agree" button was created by kosburn1114
Hello everyone,
I found a previous thread on the forums that suggested use the following code within the welcome message will change the "next" button to read "I agree"
code
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$("#movenextbtn").val('I agree to participate');
});
</script>
/code
However, this doesn't appear to work for me. Am I doing something incorrect? Instead when I view the survey I see the code and no button has changed. I'm using 1.9+ Build 120226
I'm creating a series of surveys for use within a Delphi study so I need the participants to "agree" before they begin the study.
Thanks in advance for your help!
Cheers!
I found a previous thread on the forums that suggested use the following code within the welcome message will change the "next" button to read "I agree"
code
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$("#movenextbtn").val('I agree to participate');
});
</script>
/code
However, this doesn't appear to work for me. Am I doing something incorrect? Instead when I view the survey I see the code and no button has changed. I'm using 1.9+ Build 120226
I'm creating a series of surveys for use within a Delphi study so I need the participants to "agree" before they begin the study.
Thanks in advance for your help!
Cheers!
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
12 years 1 month ago #75835
by Mazi
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Replied by Mazi on topic Change "next" button to "I agree" button
1. Where did you add this code?
2. Can you post a link to an activated sample survey which contains the code?
2. Can you post a link to an activated sample survey which contains the code?
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3593
12 years 1 month ago - 12 years 1 month ago #75885
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Change "next" button to "I agree" button
Did you disable the XSS filter and enter the code in "Source" mode?
See - docs.limesurvey.org/Workarounds%3A+Manip..._etc._in_LimeSurvey_
See - docs.limesurvey.org/Workarounds%3A+Manip..._etc._in_LimeSurvey_
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 12 years 1 month ago by tpartner.
The topic has been locked.
- kosburn1114
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
12 years 1 month ago #75916
by kosburn1114
Replied by kosburn1114 on topic Change "next" button to "I agree" button
Ah! That was it -- the security setting was set to yes. Immediately upon setting that to No the code worked.
Brilliant!
Thanks so much for your help!
Now, if you'd like to write chapter 3 of my dissertation ....
Cheers!
Keith
Brilliant!
Thanks so much for your help!
Now, if you'd like to write chapter 3 of my dissertation ....
Cheers!
Keith
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3593
12 years 1 month ago #75917
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Change "next" button to "I agree" button
If your dissertation is titled "Custom styles and scripts for LimeSurvey", I'd be happy to help :laugh:
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- danika
- Offline
- Senior Member
Less
More
- Posts: 49
- Thank you received: 0
9 years 10 months ago - 9 years 10 months ago #110243
by danika
Replied by danika on topic Change "next" button to "I agree" button
Doesn't seem to work in 2.05+ It still reads "Next".
Last edit: 9 years 10 months ago by danika. Reason: addtional information
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3593
9 years 10 months ago #110246
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Change "next" button to "I agree" button
That's a nice polite way to ask for help.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- danika
- Offline
- Senior Member
Less
More
- Posts: 49
- Thank you received: 0
9 years 10 months ago #110248
by danika
Replied by danika on topic Change "next" button to "I agree" button
Hi Tony,
Any suggestions are appreciated.
Kind regards
Any suggestions are appreciated.
Kind regards
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3593
9 years 10 months ago #110251
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Change "next" button to "I agree" button
Have a look at this post -
www.limesurvey.org/en/forum/design-issue...ome-page-only#105511
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: danika
The topic has been locked.
- danika
- Offline
- Senior Member
Less
More
- Posts: 49
- Thank you received: 0
9 years 10 months ago #110258
by danika
Replied by danika on topic Change "next" button to "I agree" button
Thanks, I will give a shot and let's see what happens.
Best
Best
The topic has been locked.
- danika
- Offline
- Senior Member
Less
More
- Posts: 49
- Thank you received: 0
9 years 10 months ago #110263
by danika
Replied by danika on topic Change "next" button to "I agree" button
Tony, thanks for a point in the right direction. On that page you made reference to the Citronade template, and that UI button functionality was disabled in it. As it so happened, that was it!
Thanks again!
Best
Thanks again!
Best
The topic has been locked.
- danika
- Offline
- Senior Member
Less
More
- Posts: 49
- Thank you received: 0
9 years 10 months ago #110278
by danika
Tony, this worked perfectly once I switching from the Citronade template. Would there be a way now to add an "I do NOT Accept" button?
Thanks in advance.
Replied by danika on topic Change "next" button to "I agree" button
tpartner wrote: Have a look at this post - www.limesurvey.org/en/forum/design-issue...ome-page-only#105511
Tony, this worked perfectly once I switching from the Citronade template. Would there be a way now to add an "I do NOT Accept" button?
Thanks in advance.
The topic has been locked.