- Posts: 33
- Thank you received: 2
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Add button in Welcome Screen
- jorgesinval
- Topic Author
- Offline
- Junior Member
Less
More
5 years 1 week ago #182124
by jorgesinval
Sinval
Add button in Welcome Screen was created by jorgesinval
Hello!
I would like to add a button to the welcome screen in order to accept or not the free and informed consent (TCLE). Although I did it in the previous version of the software (i.e. LimeSurvey 2), I'm not able to do it using the same code in the new version.
The code I used:
How should I edit this code using LimeSurvey 3?
Thanks!
I would like to add a button to the welcome screen in order to accept or not the free and informed consent (TCLE). Although I did it in the previous version of the software (i.e. LimeSurvey 2), I'm not able to do it using the same code in the new version.
The code I used:
Code:
<script type="text/javascript"> $(document).ready(function() { var buttonText = '<strong>I do not accept</strong>'; var redirectURL = 'http://www.usp.br'; $('#movenextbtn').after('<button class="button redirect-button ui-button ui-widget ui-state-default ui-corner-all" type="button" style="font-size: 11pt; width: 120px; height: 35px"><span class="ui-button-text" style="padding:0 0.7em;">'+buttonText+'</span></button>'); $('.redirect-button').click(function(event) { window.location = redirectURL; }); }); </script>
How should I edit this code using LimeSurvey 3?
Thanks!
Sinval
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11758
- Thank you received: 2753
5 years 1 week ago #182128
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Add button in Welcome Screen
Limesurvey 3 has this functionallity already implemented into core.
manual.limesurvey.org/Data_policy_settings
Wouldn't this work for you?
manual.limesurvey.org/Data_policy_settings
Wouldn't this work for you?
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: DenisChenu, cdorin
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5070
- Thank you received: 1263
5 years 1 week ago #182130
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Add button in Welcome Screen
First, check the data-policy settings in LS3.
That might will do the trick for you without any workarounds.
That might will do the trick for you without any workarounds.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Attachments:
The following user(s) said Thank You: holch, cdorin
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11758
- Thank you received: 2753
5 years 1 week ago #182136
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Add button in Welcome Screen
Too slow, Jelo, too slow...
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: cdorin
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5070
- Thank you received: 1263
5 years 1 week ago #182138
by jelo
Works flawless, always.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Add button in Welcome Screen
The flood protection was thinking I'm posting too much . Even tough I didn't post anything.holch wrote: Too slow, Jelo, too slow...
Works flawless, always.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11758
- Thank you received: 2753
5 years 1 week ago #182140
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Add button in Welcome Screen
But you get a Star for the additional effort, not just posting the link to the manual like me, but also including screenshots into the post itself. That caused probably the additional 4 minutes.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The topic has been locked.