Forum Discussion
JohnThomas
9 years agoQrew Cadet
i think you can use the famous IOL Technique
Just create a formula text field and make the "Allow html tags" as checked
Paste the below code on the formula
Write whatever code you wish to have in the module.js.
You can rename the page , but the same page name should be called on the formula too.
I hope this will solve your issue!!
Just create a formula text field and make the "Allow html tags" as checked
Paste the below code on the formula
"<img qbu=\"module\" src=\"/i/clear2x2.gif\" " & "onload=\"javascript:if(typeof QBU=='undefined'){QBU={};$.getScript('" & URLRoot() &"db/" &Dbid() &
"?a=dbpage&pagename=module.js&rand='+Math.random())}\">" Create a page in Home-Settings-Pages-New Page and have the below code $(document).ready(function(){ alert("Page is Loaded !!") }) Save the page as module.js
Write whatever code you wish to have in the module.js.
You can rename the page , but the same page name should be called on the formula too.
I hope this will solve your issue!!