Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago

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 protected]?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

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

  • Anonymous's avatar
    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.

     

  • Anonymous's avatar
    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?