Default value
The Default value allows you to pre-fill a part when a new object is created. The behaviour depends on the selected Default value type, which determines how the content is interpreted.
return #REPLACE-PARTVALUE-Type||# === "TypeA" ? "Value" : "";
Showing a date field in readable format
return CommonInterface.utcDateToString(CommonInterface.stringToDate(#REPLACE-PARTVALUE-Date1||#, "yyyyMMddHHmmss"), 'dd/MM/yyyy');Data field: set current date as default value
return CommonInterface.utcDateToString(new Date(), 'yyyyMMdd');Last updated
Was this helpful?