- Posts: 5045
- Thank you received: 1219
Change submit button to next button
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
Try:
<script>
$(function(){
$('#movesubmitbtn > span').text('Next');
})
</script>
Survey Designer and Programmer
Thanks again.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
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.
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.
<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.
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
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.