I want to add a $ sign in front of my Cost column of text boxes, but not Quantity. How do I make that happen?

I want to add a $ sign in front of my Cost column of text boxes, but not Quantity. How do I make that happen?

Best answer by omkarkewat
Hey
Qualtrics.SurveyEngine.addOnload(function() {
// Get all text input fields within the question container
var inputs = $(this.getQuestionContainer()).select('input[type="text"]');
// Loop through each text input field, but only on odd indices (1,3,5, ...)
for (var i = 1; i < inputs.length; i += 2) {
var input = inputs[i];
// Insert a dollar sign ('$ ') before each selected text input field
$(input).insert({ before: '$ ' });
}
});
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
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.