….
<#if field.defaultValue??>"defaultValue": "${field.defaultValue}",</#if>
<#assign dateDuJour = nowDate>
<#assign aDate = dateDuJour?date >
<#if field.name = "madl:monChampDate"> "defaultValue": "${aDate}",</#if>
….
Can't convert the date to string, because it is not known which parts of the date variable are in use. Use ?date, ?time or ?datetime built-in, or ?string.<format> or ?string(format) built-in with this date.==> ${aDate} escaped ${jsonUtils.encodeJSONString(aDate)} [on line 23, column 74 in org/alfresco/repository/forms/formdefinition.lib.ftl]
in user-directive formDefLib.formDefJSON [on line 2, column 1 in org/alfresco/repository/forms/formdefinition.post.json.ftl]
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.