I need to display some custom data that would be hard to implement in espo, so I thought I could create a dashlet that shows an iframe with custom content, but it needs to go on account or contact detail view, and I need to use account/cpontact attribute to pass into iframe as a parameter. How can I display a dashlet, or custom chunk of iframe into entity detail view?
How can I add a dashlet to an entity detail page?
Collapse
X
-
-
You could use afterRender of the view to put the iframe in.
PHP Code:afterRender: function() { $('SelectorFortheElementAfterWhichyouWantToPutYourIFrame').after('<iframe src="yourUrl.com?ParameterName=' + this.model.get("AttributeName") +'"></iframe>'); }
Last edited by Andorxor; 09-26-2019, 08:12 AM.Comment
Comment