Does anyone know how to add dollar sign depending on language? For English, the dollar sign needs to be before the text box but for French it has to be after.
Dynamically adding a dollar sign before or after a Constant Sum depending on the language
Best answer by SurajK
Hi,
You can add the symbol based on country parameter or language parameter.
Qualtrics.SurveyEngine.addOnReady(function()
{
var country = "${e://Field/country}"
//English
if(country == 1)
{
jQuery('input[type="text"]').before('$')
}
//FR - if code is 2
if(country == 2)
{
jQuery('input[type="text"]').after('$')
}
});
OR
Qualtrics.SurveyEngine.addOnReady(function()
{
var lang = "${e://Field/Q_lang}"
//English
if(lang == 'EN')
{
jQuery('input[type="text"]').before('$')
}
//FR - if code is 2
if(lang == 'FR')
{
jQuery('input[type="text"]').after('$')
}
});
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.
