Hi guys and girls,
I am trying to create a bilingual forms by switching all the label field by English or french language base on a radio button choice.
I have almost done my preliminary test but get issue to rename individual label row from a table. the table has fixed row . Well the Customer request to get a employee evaluation form.
toggle to this other screen shot when frech (Français) is selected
So how can I change my english static row label name by another french static row label name
means row 1 = rangée 1 or any other static name
here my initial code that works fine for now to togle all the other label from English to french and vice-versa
$(document).ready(function() {
$('#q4').click(function () {
if($('input[value="Francais"]').is(':checked'))
{
$('#q4 .cf-label').text("Langage");
$('#q1 label').text("Nom");
$('#q19 .cf-section-header').text("Partie 1 de l'évaluation");
$('#q16 label').text("Classement");
$('#q17 label').text("Marque");
}
else {
$('#q4 .cf-label').text("Language");
$('#q1 label').text("Name");
$('#q19 .cf-section-header').text("Evaluation Part 1");
$('#q16 label').text("Rating");
$('#q17 label').text("Score");
}
});
});