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
Pstork1
Dual Super User III
Dual Super User III

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 III
Dual Super User III

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?

Pstork1
Dual Super User III
Dual Super User III

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

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,834)