Make a default Date

Hi Guys,

I'm Tring to make a default value for my originalEnd Date , and originalEnd date is a part of ri!project.originalEnd date 

how i can make default value in CDT if user is not going to enter any value ,

a!dateField(
label:"Original Date",
labelPosition: "ABOVE",

value: rule!RPF_property(ri!project_U, {"project", "currentEndDate"}, null),
saveInto: {

if(rule!RPF_isNullOrBlank(ri!project_U.project.originalEndDate),

type!{urn:com:appian:types:RPF}RPF_Project(
currentEndDate: today()+100,
)
,
ri!project_U.project.originalEndDate
)
},

required: false,

)

  Discussion posts and replies are publicly visible

Parents Reply Children