2014-03-27 183 views
0

我在Marketo中選擇了日期字段,並使用日曆來選擇所需的日期。在日曆上將當前日期設置爲默認日期

我想這個提交默認爲「今天」的日期,除非用戶更改?

可以這樣做嗎?我試圖FieldID = {{system.date}}

不過是似乎沒有輸入領域當前的日期,除非你通過壓延機

+0

您能否提供* marketo * lib或framework的鏈接? –

回答

0

這裏選擇它是一個示例腳本,您可以的Marketo用它來輸出今天的日期作爲令牌:

## Access Velocity's calendar object 
#set($x = $date.calendar) 

## Format date 
#set($current_date = $date.format('dd-MM-yyyy', $x.getTime())) 

## Returns today's date 
$current_date 

有關使用令牌腳本的更多信息,請參閱Marketo's developer documentation

相關問題