We recommend reviewing what is submitted before posting, in case your idea has already been submitted by another community member. If it has been submitted, vote for that existing feature request (by clicking the up arrow) to increase its opportunity of being added to Cireson solutions.
For more information around feature requests in the Cireson Community click here.
Add event function for Home page
Example for Incident form:
<div>app.custom.formTasks.add('Incident', null, function (formObj, viewModel) {</div><div> </div><div> //Incident OnReady</div><div> formObj.boundReady(function () {</div><div> </div><div> //Code here will run when the Incident form has loaded.</div><div> </div><div> return;</div><div> });</div>
Today people use a setTimeout function or setInterval methods to ensure every element is loaded before making changes to the layout, doing API calls etc. It is not enough to use $(window).load or $(document).ready methods. This creates irritating delays and have the risk to not trigger at all.
Comments
For the simple reason that it is easier to enlist help from other resources if it is simple to write the new custom task (and not worry about when any of the elements load), this could make my job easier.
In the meantime, can someone provide an appropriate mutation observer to bind to that loads last after all other dom objects?
Cheers,
Adrian