Welcome to the LimeSurvey Community Forum

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

Add button in Welcome Screen

  • jorgesinval
  • jorgesinval's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 1 week ago #182124 by jorgesinval
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:
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
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 week ago #182128 by holch
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?

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.
More
5 years 1 week ago #182130 by jelo
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.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: holch, cdorin
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 week ago #182136 by holch
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.
More
5 years 1 week ago #182138 by jelo
Replied by jelo on topic Add button in Welcome Screen

holch wrote: Too slow, Jelo, too slow... ;-)

The flood protection was thinking I'm posting too much ;-). Even tough I didn't post anything.
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
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 1 week ago #182140 by holch
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.
  • jorgesinval
  • jorgesinval's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 1 week ago #182141 by jorgesinval
Replied by jorgesinval on topic Add button in Welcome Screen
Perfect! Thank you!

Sinval
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose