Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

HTML content in Plugin

$
0
0

Hi,

I have included a HTML content in the plugin which will be triggered on the send of email. Its working fine but in here on the click of submit button i need to obtain the value of x. For now when i click on the button it navigates to the URL page but the score remains x instead of its respective value. Below is the HTML code i have included in the plugin.

s=@"<html lang='en' xmlns='http://www.w3.org/1999/xhtml'><head><meta charset='utf-8'><title>Index</title></head><body style='margin:10px; border:hidden;'>";
s+="<table align='center' border='0' bgcolor='#FDD017' cellpadding='0' cellspacing='0' style='padding: 10px; height: 284px; width: 800px;border:0px;'>";
s+="<tr><td align='center' cellpadding='0' cellspacing='0' style='font-size:11px;padding-left:10px; padding-right:10px; margin-right: 0px;'<tr><td colspan='2' style='background-color:white; background-repeat:no-repeat;' >>";
s+="<div align='center'><input type='range' id='myRange' min='0' max='10' value='0' step='1' style='width: 496px'</div></td></tr><tr> >";
s+="<td colspan='2' style='background-color:white; background-repeat:no-repeat;'>";
s+="<div align='right'><button onclick='myFunction();' style='width: 92px; height: 30px; background-color: #3498DB;'>Submit</button></div></td>";
s+="<p id='demo'></p><script>function myFunction(FeedbackScore){var x = document.getElementById('myRange').value;";
s+="window.location.href = " + " \'" + url + "Score=" + 'x' + "&CaseNo=" + ticketnumber + "\'}</script></tr><tr><td height='27' colspan='2'></td></tr>";
s+="</table></body></html>";

 

Please suggest a solution for this.

Thank You

Regards,

Hima


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>