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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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