cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MiteshGovan
Post Patron
Post Patron

HTML Not working

Hi

 

I trust that you are well. My formula is giving me an error message of "Unexpected Characters". Could you please advise why and where I am going wrong.

 

Patch(
'Ascendis Medical',
Defaults('Ascendis Medical'),
Visitors_Form.Updates,
VistorsD_Form.Updates
);
Office365Outlook.SendEmail(
User().Email,
"Declaration Form",
"***HIGH ALERT***<b>BOLD</b>" & "

" & "<table width='50%' border='1' cellpadding='5' style='border:1px solid black; border-collapse:collapse'>" &
"<br> Date" & ":" & Now() &
"<br> Name: " & Name_DataCardValue22.Text &
"<br> Email: " & Email_DataCardValue24.Text &
"<br> Company: " & Comp_DataCardValue23.Text &
"<br> Department: " & Dept_DataCardValue25.Text &
"<br> Temperature: " & Temp_DataCardValue27.Text &
"<br> Travlled: " & Radio_travld.Selected.Value &
"<br> If you travelled, where?: " & DataCardValue105.Text &
"<br> Have you been infected with COVID: " & Radio_infctd.Selected.Value &
"<br> If Yes: " & DataCardValue106.Text &
"<br> Fever: " & Radio_fever.Selected.Value &
"<br> Shortness in Breath: " & Radio_SOB.Selected.Value &
"<br> Chest Pain: " & Radio_CP.Selected.Value &
"<br> Cough: " & Radio_cough.Selected.Value &
"<br> Sore Throat: " & Radio_ST.Selected.Value &
"<br> Loss of Smell: " & Radio_Smell.Selected.Value &
"<br> Fatigue: " & Radio_fatigue.Selected.Value &
"<br> Vomiting: " & Radio_vomit.Selected.Value & "<br><br>")
&"</table>",
{IsHtml:true}
);
UpdateContext({varShowPopup: false});
Notify(
"Thank You For Submitting The Data",
NotificationType.Success
);
ResetForm(Visitors_Form);
ResetForm(VistorsD_Form);
Reset(ComboBox_PplPicker);
Navigate('Welcome Screen');

 

1 ACCEPTED SOLUTION

Accepted Solutions

Just remove the trailing parentheses ')' from that line.  The close for Sendmail is already there  after the {isHtml: True} .  The one on the other line is extra.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

3 REPLIES 3
Pstork1
Dual Super User
Dual Super User

The problem is the closing parentheses at the end of this line.

"<br> Vomiting: " & Radio_vomit.Selected.Value & "<br><br>")

It closes the SendMail function before you've added the ishtml property.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

HI @Pstork1 

 

What do i do?

Just remove the trailing parentheses ')' from that line.  The close for Sendmail is already there  after the {isHtml: True} .  The one on the other line is extra.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,092)