Not sure if this is a bug or by design but each time I update to newer version of nuBuilder 4.5 the JS code I have in the nuuserhome Custom Code area is always removed and replaced by the default code.
All changes to nuBuilder's core forms and objects, in other words all records with a nu- primary key prefix are overwritten when updating.
Move your code to Setup->Header instead.
function nuHeaderTest() {
console.log('Functions placed here are available anywhere in nuBuilder Forte.');
}
// nuOnLoad() will be run after each Browse and Edit Form loads.
function nuOnLoad() {
if (nuFormType() == 'edit') {
// Edit Form loaded
if (nuCurrentProperties().form_id == 'nuuserhome') {
// YOUR CODE HERE...
}
} else
if (nuFormType() == 'browse') {
// Browse Form loaded
}
}
// </script>
<!-- Define your own styles, override styles from nubuilder4.css -->
<style>
/*.nuActionButton {background-color:#0073aa;} */
</style>
<script>