Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


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.

...

%(ConfigTimeZoneAbbr)%

%(ConfigTimeZone)%

%(Now)%

%(SiteURL)%

%(SiteTitle)%

...

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

CharacterFormatting functionality
dRepresents the day of the month as a number from 1 through 31. 
ddRepresents the day of the month as a number from 01 through 31. 
dddRepresents the abbreviated name of the day. (Mon, Tues, Wed etc).
ddddRepresents the full name of the day. (Monday, Tuesday etc).
h12-hour clock hour. (e.g. 4).
hh12-hour clock, with a leading 0. (e.g. 06)
H24-hour clock hour. (e.g. 15)
HH24-hour clock hour, with a leading 0. (e.g. 22)
mMinutes.
mmMinutes with a leading zero.
MMonth number. (eg.3)
MMMonth number with leading zero. (eg.04)
MMMAbbreviated Month Name. (e.g. Dec)
MMMM

Full month name. (e.g. December)

sSeconds.
ssSeconds with leading zero.
tAbbreviated AM / PM. (e.g. A or P)
ttAM / PM. (e.g. AM or PM)
KRepresents the time zone information of a date and time value. (e.g. +05:00)

...