Hi all,
I have a MS form that can be submitted by anyone, with two muliple choice answers where they can choose more than one answer.
I've used the following replace expression to remove the characters and separate each choice on to a new line:
replace(replace(replace(replace(outputs('Get_response_details')?['body/r77b2befd75cb4e0fab78b210bfd57145'],'[',''),']',''),'"',''),',','<br>')
before replace expression:
after replace expression:
However, I'd like to bullet each response.
How do I do that?
You can try putting each line in an expression in the action’s code view. Like
If(contains(InsertMultiChoiceResponse, InsertChoice), '<li>InsertChoice</li>', '')
thanks @takolota, I haven't been able to get it to work how I wanted it but it's not the end of the world. I was hoping there was a simple solution that I was missing.
I can't see how to use the html when the responses are based on a multiple choice form.
So I can't set
when I might only get
This is the email that I've set up:
The Outputs are the bits that I'm trying to format with the bullets, so it needs to be through the expression in the dynamic content pop out I think.
@KatLane
Well dang, even that just returns a weird character. And even if I try using the HTML suggested for an unordered list with bullets, it returns * asterisks instead of bullets in the HTML to text.
But it does seem to work in the HTML of something like an email action if you are using that
Code
<ul>
<li>Test</li>
<li>Test2</li>
</ul>
Example:
@KatLane
Sorry, I oversimplified & forgot you might not be able to put a bullet point directly into the formula.
But this should still be possible.
Sometimes I've wanted to use a line-break without using a separate Compose action to create a line break character, so I reference a list like this: https://www.tutorialspoint.com/html/html_url_encoding.htm
Then I use the URL encode value in a decodeUriComponent expression.
So a bullet point is %95 in a url according to this list. So you should be able to insert decodeUriComponent('%95') where you want the bullet point.
Thanks @takolota , I've found this previously, but don't know how to translate it into the replace Expression:
Can you please be more specific about the bullet symbol I should include? This isn't my wheelhouse so I'm learning on the fly.
Thank you.
On the replace where you input the line-break, you could include a bullet symbol immediately after the line-break characters.
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2