- Posts: 6
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Hello,eschneider wrote: If translation is the only way to accomplish this I will look further into it. On the face of it translation does not seem appropriate.
$(document).ready(function(){ if (typeof tokenlabel === "undefined"){ tokenlabel ="YOUR TOKEN LABEL : "; } if (typeof tokentext === "undefined"){ tokentext ="YOUR TOKEN TEXT DESCRIPTION"; } if (typeof tokenerror === "undefined"){ tokenerror ="<br><br><strong class='error'>YOUR ERROR MESSAGE.</strong>"; } if ($("#tokenform").length ) { $("#tokenmessage").html(tokentext); $("label[for='token']").text(tokenlabel); } else { $("#tokenmessage").html(tokentext+tokenerror); } });
$('.register-message-1').html('The first line, bold in default template'); $('.register-message-2').html('The second line, use <br /> for line feed'); $('table.register td:nth-child(1)'.html('firstname replace'); $('table.register td:nth-child(3)'.html('survame replace'); $('table.register td:nth-child(5)'.html('mail adress replace');
and embed it in any basic html webpage...<form method='post' action=' yourplatform.com/register.php '>
<table class='register' summary='Registrationform'>
<tr>
<td align='right'><input type='hidden' name='sid' value='1234' id='sid' /></td>
<!-- 1234 = your survey ID -->
<td align='left'><input class='text' type='hidden' name='register_firstname' value=' ' /></td>
</tr>
<tr>
<td align='left'><input class='text' type='hidden' name='register_lastname' value=' '/></td>
</tr>....
<form method='post' action=' yourplatform.com/register_custom.php '>