Hello,
a customer with Limesurvey 2.6.6LTS asked me to change the default label of many survey buttons in a custom theme. In brief, they want to show the survey as an "application form".
I cannot access to the filesystem so I cannot change the translation files.
XSS filter is on.
I've managed to change the label for the Back, Exit and clear, Captcha text in the template.js
Code:
$(document).ready(function(){
var previousText = "Back";
$('#moveprevbtn .ui-button-text').text(previousText);
var clearAllText = "Exit and clear the application";
$('#clearall .ui-button-text').text(clearAllText);
var captchaText = "Please confirm access to the application by answering the security question below and click continue.";
$('#welcome p .captcha').text(captchaText);
var loadAllText = "Load unfinished application";
$('#loadallbtn .ui-button-text').text(loadAllText);
// THIS WON'T WORK //
var returnToSurvey = "Back to the application"
$('.dialog-upload .ui-dialog-buttonpane .ui-dialog-buttonset .ui-button-text').text(returnToSurvey);
});
However, I cannot find a way to change the "Return to survey" button in the "upload file" modal form, because at "document.ready" it is not still present.
The modal form is as in the attached picture.
Any hints?
Regards
Rita