Hello All - first message here. Anyone know if it'...
# suitescript
r
Hello All - first message here. Anyone know if it's possible to script a 'Status' banner on a custom record? I'm after the same functionality you see on a sales order next to the document number in the header (i.e. PENDING FULFILLMENT) but on a custom record, referencing a custom status field.
k
you can add a custom client script include in pageInit function
jQuery(function () {
jQuery('.uir-record-name')
.parent()
.append(
jQuery('<div>', {
class: 'uir-record-status',
text: 'Custom Status',
})
);
});
Add logic to change status values dynamically based on some conditions (value in a hidden field, for instance)
e
The "official" way to add those banner messages is using a User Event script with a beforeLoad handler that leverages the addPageInitMessage() method on the Form.
r
Thanks! Exactly what I needed