Solved
Formatting embedded data to make it all lowercase
Hello,
I created embedded data based on the answer to the multiple-choice question. Let's say the question looks like this:
Which color is your favorite?
1. Red
2. Blue
3. Green
And I recorded the answer as "color".
Then, I want to use "color" in the survey like:
You choose ${e://Field/color} color for your favorite.
Currently, the result looks like: "You choose Green color for your favorite."
But I want to change the format of "Green" to "green", making all characters lowercase.
Is it possible to do it?
Thank you very much in advance.
Best answer by TomG
> @jhwang said:
> @TomG,
> Thank you for the clarification. Now I use this html for my question:
>
> `You choose <span class="color">${e://Field/color}</span>.`
>
> And JS is like:
> Qualtrics.SurveyEngine.addOnload(function() {
> jQuery("span.color").html("${e://Field/color}".toLowerCase());
> });
>
> And the result is:
> You choose green.
>
> But if I want to make "green" bold, like:
> You choose green.
>
> Is it possible to set two styles (lowercase and bold)?
Change the style of the span:
```
<span class="color" style="font-weight:bold">${e://Field/color}</span>
```
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
