Hello, I have a project where the user has to enter french text. I need a a set of French special letters to popup. I have tried https://www.codehim.com/demo/jquery-special-characters-input/ but it didn’t work:( The css is off, but the most important, if I press the letter, it doesn’t go into the text field. Do you have any suggestions?
this is my survey: https://brown.co1.qualtrics.com/jfe/form/SV_3JcmoQLaTCANB4i
I need to add pop-up french characters
Best answer by Deepak
Try this:
Qualtrics.SurveyEngine.addOnload(function() {
var button = document.createElement("button");
button.innerHTML = "French Special Letters";
document.querySelector("#" + this.questionId + " .QuestionBody").appendChild(button);
var dialog = document.createElement("div");
dialog.id = "specialCharsDialog";
dialog.title = "French Special Letters";
dialog.style.display = "none";
var specialChars = ['à', 'â', 'æ', 'ç', 'é', 'è', 'ê', 'ë', 'î', 'ï', 'ô', 'œ', 'ù', 'û', 'ü'];
specialChars.forEach(function(char) {
var specialButton = document.createElement("button");
specialButton.classList.add("specialChar");
specialButton.innerHTML = char;
dialog.appendChild(specialButton);
});
document.querySelector("#" + this.questionId + " .QuestionBody").appendChild(dialog);
var isDialogVisible = false;
button.addEventListener("click", function() {
if (!isDialogVisible) {
document.getElementById("specialCharsDialog").style.display = "block";
} else {
document.getElementById("specialCharsDialog").style.display = "none";
}
isDialogVisible = !isDialogVisible; // Toggle the display status
});
var specialCharButtons = document.querySelectorAll("#" + this.questionId + " .specialChar");
specialCharButtons.forEach(function(button) {
button.addEventListener("click", function() {
var char = button.innerHTML;
var inputField = document.querySelector(".InputText");
var currentText = inputField.value;
inputField.value = currentText + char;
});
});
});
Sign up
Already have an account? Login
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login to the Community
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join.
No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Login with Qualtrics
Welcome! To join the Qualtrics Experience Community, log in with your existing Qualtrics credentials below.
Confirm your username, share a bit about yourself, Once your account has been approved by our admins then you're ready to explore and connect .
Free trial account? No problem. Log in with your trial credentials to join. No free trial account? No problem! Register here
Already a member? Hi and welcome back! We're glad you're here 🙂
You will see the Qualtrics login page briefly before being taken to the Experience Community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.

