- Posts: 5033
- Thank you received: 1257
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Change submit button to next button
- jelo
- Topic Author
- Offline
- Platinum Member
Feature request around linking/bridging surveys is here. Would like to here from people who have linked surveys together and what workarounds they used.
bugs.limesurvey.org/view.php?id=9677
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
- first
- Offline
- Elite Member
- Posts: 227
- Thank you received: 36
Try:
<script> $(function(){ $('#movesubmitbtn > span').text('Next'); }) </script>
Survey Designer and Programmer
- jelo
- Topic Author
- Offline
- Platinum Member
- Posts: 5033
- Thank you received: 1257
Thanks again.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
- tpartner
- Offline
- LimeSurvey Community Team
- Posts: 10099
- Thank you received: 3589
The greater-than sign restricts the selector to direct children. So, in this case, the selector targets <span> elements that are direct children of an element with ID "movesubmitbtn".The > span looks strange on the first sight.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
- krosser
- Offline
- Elite Member
- Posts: 222
- Thank you received: 10
Does anyone have a solution for this case, working in LS 3.+ version?
I have two surveys linked with the End-url feature and would like to change the text on the Submit button in the 1st survey so that respondents won't be confused. Basically, the "Submit" text into "Next" text, but the action of the button should stay the same.
I'm using the latest LS 3.22 hosted on LS servers, not installed locally.
- tpartner
- Offline
- LimeSurvey Community Team
- Posts: 10099
- Thank you received: 3589
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ $('#ls-button-submit').text('Next'); }); </script>
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
- krosser
- Offline
- Elite Member
- Posts: 222
- Thank you received: 10
P.S. a note for those, who are new to LS and might wanna use it as well, you need to include this code into the last question at the end of your survey (in question's source code).
I'm using the latest LS 3.22 hosted on LS servers, not installed locally.
- LouisGac
- Visitor
For example, someone could edit the file navigator.twig:
github.com/LimeSurvey/LimeSurvey/blob/ma...ation/navigator.twig
and in the statement to check if the button "submit" should be shown, test if the survey has an endurl going to another survey
github.com/LimeSurvey/LimeSurvey/blob/ma...n/navigator.twig#L45
- krosser
- Offline
- Elite Member
- Posts: 222
- Thank you received: 10
LouisGac wrote: In LS3 you can also do it in a more refined way.
For example, someone could edit the file navigator.twig:
github.com/LimeSurvey/LimeSurvey/blob/ma...ation/navigator.twig
and in the statement to check if the button "submit" should be shown, test if the survey has an endurl going to another survey
github.com/LimeSurvey/LimeSurvey/blob/ma...n/navigator.twig#L45
This sounds nice. I guess it would be {% else %} for the end-url... But what is the syntax for the end-url in twig? I couldn't find it mentioned anywhere to check how it would look like.
I'm using the latest LS 3.22 hosted on LS servers, not installed locally.
- LouisGac
- Visitor
krosser wrote:
LouisGac wrote: In LS3 you can also do it in a more refined way.
For example, someone could edit the file navigator.twig:
github.com/LimeSurvey/LimeSurvey/blob/ma...ation/navigator.twig
and in the statement to check if the button "submit" should be shown, test if the survey has an endurl going to another survey
github.com/LimeSurvey/LimeSurvey/blob/ma...n/navigator.twig#L45
This sounds nice. I guess it would be {% else %} for the end-url... But what is the syntax for the end-url in twig? I couldn't find it mentioned anywhere to check how it would look like.
dump aSurveyInfo (it's still full of non necessary data), you should find it.