Please suggest.
*This post is locked for comments
Hi,
As I mentioned in this https://community.dynamics.com/crm/f/117/t/278528 post. Angle brackets are not supported in Multiline fields on Portal due to its own limitations.
You can use below code under custom javascript to get rid of this error:
$(window).load(function(){
// Remove default onpaste event of textarea
$("#id").removeAttr("onpaste");
// OnKeypress Event
$('#id').keypress(function(event) {
if (event.keyCode == 60 || event.keyCode == 62) {
alert("You are not allowed to enter Angle brackets");
return false;
}
});
// Onpaste Event
$("#id").bind('paste',function()
{
setTimeout(function()
{
//get the value of the input text
var data= $('#id').val() ;
//replace the <> to ''
var dataFull = data.replace(/[<>]/g, '');
//set the new value of the input text without special characters
$('#id').val(dataFull);
});
});
});
If my answer helped to resolve your issue, kindly verify it by clicking 'Yes'. It would be helpful to the other community members seeking to resolve a similar issue.
Cheers
Arpit
https://arpitmscrmhunt.blogspot.in
Hi CRM Tech,
It seems like you have invalid characters causing the potentially dangerous request...
Remove the greater than and less than signs from your comment field...
Just to be a little bit clear about the issue, see the following link about request validation.
docs.microsoft.com/.../request-validation
Hope this helps...
Hello ,
This is due to the " <" "> " , which is unable to parse . Try to replace those special characters at the time of on save -
function escapeHtml(text) { return text .replace(/&/g, "&") .replace(/</g, "<") .replace(/>/g, ">") .replace(/"/g, """) .replace(/'/g, "'"); }
Hope this helps.
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
52
Victor Onyebuchi
6