I'm trying to setup a simple inline dialog but i'm getting anfollowing error and I'm not sure what I need to check.
The button is using the following code to call a region in the Inline Dialog
javascript:openModal('viewinstructions');
So nothing complicted (viewinstructions is the static idof the region on the Inline Dialog area), but it isnt working and I'm getting the following error.
One or more errors have occurred since the page loaded. Open the Browser's JavaScript console to see the errors.
On further investigation i'm getting this error
desktop_all.min.js?v=21.1.0:2 Uncaught Error: cannot call methods on dialog prior to initialization; attempted to call method 'open'
at Function.error (desktop_all.min.js?v=21.1.0:2:2589)
at HTMLDivElement.<anonymous> (desktop_all.min.js?v=21.1.0:28:7958)
at Function.each (desktop_all.min.js?v=21.1.0:2:2976)
at S.fn.init.each (desktop_all.min.js?v=21.1.0:2:1454)
at a.fn.<computed> [as dialog] (desktop_all.min.js?v=21.1.0:28:7700)
at window.openModal (theme42.min.js?v=21.1.0:1:4138)
at HTMLButtonElement.onclick (home?session=15431912037478:79:223)
I'm not sure what I need to check so any pointers would be greatly appreciated.
Currently using Apex 21.1
Thanks in advance and Happy New Year.