12-26-2022, 04:47 PM
Create a new textbox in a dashboard, write the given code in display content of text box
<iframe id="demo" style="width:calc(100% - 5px); height:calc(100% - 5px); position:absolute;top:0px;left:0px;border:none;"></iframe>
Then write the given code in the component on which you want to click for which the textbox along with story to be loaded.
sdk.showComponent( ['text2'] );
var v3=" Open doc link of a story ";
document.getElementById("demo").src=v3;
sdk.applyStyles("#draggablesParentDiv"+sdk.dashboard.m_id, { "height": "1460px"});
<iframe id="demo" style="width:calc(100% - 5px); height:calc(100% - 5px); position:absolute;top:0px;left:0px;border:none;"></iframe>
Then write the given code in the component on which you want to click for which the textbox along with story to be loaded.
sdk.showComponent( ['text2'] );
var v3=" Open doc link of a story ";
document.getElementById("demo").src=v3;
sdk.applyStyles("#draggablesParentDiv"+sdk.dashboard.m_id, { "height": "1460px"});