Would be great if I can do work on a "beforeLoad" server side script and populate an array or set an object and then pass that to the client to continue in the "pageInit". Right now the only way is to set custom hidden fields but very large arrays, etc will max out the custom fields unless you use longtext. I haven't seen a way. also, if I create an object with various data elements and methods, its would be great to simply pass this through (blob like) to use on the client side. Is there a way I am not aware of?
As a second question: I need to create a drop-down list on an online form based on the search results of a 'beforeLoad'. There doesn't seem to be a way to set up a drop-down for this use. So as a workaround, I created an empty custom list and then sourced that empty list to the custom field List/Record. Unfortunately there is no way to add text and value options to the list on pageInit to add in the search results so I had to use the DOM methods to do it. Would be nice if there is a way to populate a list dynamically when a form loads (and removes them when the form unloads as they will error if passed through to save) Is there a way I don't know about?
Thanks.