I wanted to 'selectize' the entry field for a custom text field and name. We have only a few users, but having drop down lists for name and organization making the booking will help avoid a lot of spelling errors, especially in organization. Selectized fields allow for additions as well. So I added the following in js.inc immediately following the loading of js$page.js.php
if (is_readable("js/$page.custom.js.inc"))
{
include "js/$page.custom.js.inc";
}
This allows me to write custom php / js to add to the for any page in MRBS. It seems to me that this would be a really useful addition, as the scripts can do quite a bit of customization of forms without ever having to touch the MRBS code. Since the added code is server side, it should not pose a security risk. Usual caveats about not messing things up, of course.
My custom include to entry (for new records only, not for edits) adds selectize.min.js and accompanying css, plus code to selectize these text fields and then return them to normal <input> fields once the entry is typed or selected. I've also selectized organization on the report page to see how our users respond.
Good idea in principle. Let me think about the details.