- Posts: 5056
- Thank you received: 1267
Ask the community, share ideas, and connect with other LimeSurvey users!
<script> $(function(){ $('#movesubmitbtn > span').text('Next'); }) </script>
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.
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ $('#ls-button-submit').text('Next'); }); </script>
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
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.