Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

HTML visual - submit a form via email doesn't work

I used the HTML viewer but when I click on submit button it doesn't work.  Is there any way to do this?

 

<html>
<style>
input[type=text], select {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type=email], select {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type=submit] {
  width: 100%;
  background-color: #409bd2;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: #007ac3
}

div {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
}

h3 {
  font-family: arial;
  color: #007ac3;	
  text-align: center;
}

form {
  font-family: arial;
  font-size: 16px;
}

</style>
<body>

<h3>Request to receive vulnerability exceptions alerts</h3>

<div>
  <form action="mailto:email@address.com?subject=Vulnerability Exception Alerts Request" method="post" enctype="text/plain">
    <label for="body"></label>
    <input type="text" id="body" name="Request" value="Please add me to your list">
    <input type="submit" value="Submit">
  </form>
</div>

</body>
</html>

  

4 REPLIES 4
Anonymous
Not applicable

I'm having the same issue - have a webpage embedded using HTML Content which loads fine and navigation buttons function but Form Submit button doesnt work.

Could this be an issue with POST Requests to the server from within Power BI?

v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

Would you please try to use HTML Content :https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA200001930?tab=Overview

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

Anonymous
Not applicable

the  attached code works independently to create a outlook email with the subject and body but once it's inside the html viewer visual it doesn't open the email link after you hit submit. No error, it just doesn't respond. I am assuming it may be a limitation of the free visual from power bi marketplace so curious if anyone had ever used it for something like this.  I created a URL table and changed it to a icon but I wanted to do forms in the future so this may require R or Python customized visual.

 

amitchandak
Super User
Super User

@Anonymous , Does it give any Erroe. what is excat component. How are you using it . Have tried with a small sample HTML

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.