
Hello Everyone,
Just wondering how you can hide some text in the html code I have in the email body?
I have an html code to display contact information of the user who submitted the form. Sometimes the user who is submitting the form doesn't have a mobile number. So I don't want to display the text "Mobile:" in the contact information.
<div style='display:inline;visibility:hidden;'> Mobile: @{variables('Mobile')}</div>
I tried setting the visibility property using a variable which gives the correct output in the flow. However in the email I still see the word "Mobile:"
Thanks
You could use an approach like this. Create a compose like below and then use that in your email. It checks the length of the Mobile variable and returns Mobile and the number if >1 or empty '' if not.