I’m trying to use UIHelper within a function on a Type to pre-populate some things for UI conditionally based on calc fields. However the following returns an error in static/console and also when my method is invoked:
UIHelper.momentHelper(new Date(), 'MM/DD/YYYY h:mm a') Uncaught ReferenceError: moment is not defined at Object.momentHelper
I’m assuming it doesn’t have access to Moment.js? Is this error intentional or expected? When run from console on a UI page, it returns correctly. Is there a similar type/function I can use server side that would accomplish the same thing?