Within each field's properties, there is a Custom JavaScript tab with functions that can be used to tailor and extend the form. There are also events related to workflow actions that permit customization of the form behavior when a user performs an action. In each of these cases, there are a few objects that can be referenced within the Custom JavaScript.
...
As one uses the events below, often the need to duplicate functionality between fields arises. Rather than have duplicate code in multiple fields, one can package the code that would be duplicated as a function, and place that function in the module-wise JavaScript. The module-wide JavaScript is accessible from a link at the top of the Master Schema Field List and the form designer. All data required by a module-wise JavaScript function should be passed into the function.
...
This formatting suffix is used to decide which portions of the DateTime value are displayed and in what order.
Example - ("MM/dd/yyyy hh:mm tt") = 05/29/2018 03:59 AM
Character | Formatting functionality |
---|---|
d | Represents the day of the month as a number from 1 through 31. |
dd | Represents the day of the month as a number from 01 through 31. |
ddd | Represents the abbreviated name of the day. (Mon, Tues, Wed etc). |
dddd | Represents the full name of the day. (Monday, Tuesday etc). |
h | 12-hour clock hour. (e.g. 4). |
hh | 12-hour clock, with a leading 0. (e.g. 06) |
H | 24-hour clock hour. (e.g. 15) |
HH | 24-hour clock hour, with a leading 0. (e.g. 22) |
m | Minutes. |
mm | Minutes with a leading zero. |
M | Month number. (eg.3) |
MM | Month number with leading zero. (eg.04) |
MMM | Abbreviated Month Name. (e.g. Dec) |
MMMM | Full month name. (e.g. December) |
s | Seconds. |
ss | Seconds with leading zero. |
t | Abbreviated AM / PM. (e.g. A or P) |
tt | AM / PM. (e.g. AM or PM) |
K | Represents the time zone information of a date and time value. (e.g. +05:00) |
...