Page 1 of 1

Remove events from html tag

Posted: 07 Apr 2017
by aslanovsergey
Hi and thank you for amazing software. I have an issue how to remove events(onmouseover, onmouseout) from html tag. I try to use embedded html control and put there
<script type="text/javascript">
Plumsail.FD.jQuery(".ms-relateditems-item").removeAttr("onmouseover");
Plumsail.FD.jQuery(".ms-relateditems-item").removeAttr("onmouseout");
</script>
But didn't succeed although i was able to do it straight in browser console. Then i tried to wrap previous code in jquery ready function
Plumsail.FD.jQuery.ready(function() {
Plumsail.FD.jQuery(".ms-relateditems-item").removeAttr("onmouseover");
Plumsail.FD.jQuery(".ms-relateditems-item").removeAttr("onmouseout");
});
Also wasn't helpful

Re: Remove events from html tag

Posted: 10 Apr 2017
by Dmitry Kozlov
Hi,
First, could you describe your case? Do you want to disable mousover event on a Related Items control? - Why?

Re: Remove events from html tag

Posted: 10 Apr 2017
by aslanovsergey
Hi Dmitry,

I want to add related item and not want users to be able to modify this field (add new related items and remove existent)

Re: Remove events from html tag

Posted: 10 Apr 2017
by Dmitry Kozlov
Hi,
Set Editable property of the Related Items to False.