When you insert a template, this macro opens a dialog window and asks you to:
Then the macro inserts the entered text or selected item into the current macro position. The WTE macro can be nested into most of the Shared Email Templates macros, including other WTEs. All the WTE macros of the same nested level are aggregated into one dialog box.
~%WhatToEnter{
"type":"text" | "dropdown" | "calendar" | "time" | "dataset",
"title":"textvalue",
// in case of text
"defaultValue":"textvalue",
"required":"true" | true | "false" | false,
[ "useForConditionalParts":"true" | true | "false" | false]
// in case of dropdown
"items":[ "textvalue1", "textvalueN" ],
[ "defaultItem":"1" | 1 ],
[ "editable":"true" | true | "false" | false,
[ "required":"true" | true | "false" | false, ]
]
[ "multiselect":"true" | true | "false" | false,
[ "separator":"textvalue" ] // default separator is comma
]
[ "useForConditionalParts":"true" | true | "false" | false]
// in case of calendar
[ "editable":"true" | true | "false" | true,
[ "required":"true" | true | "false" | false, ]
]
[ "format":"textvalue", ]
[ "locale":"textvalue", ]
[ "dateDelta":numbervalue ]
// in case of time
[ "format":"textvalue", ]
[ "locale":"textvalue", ]
[ "timeDelta":numbervalue ]
// in case of dataset
"dataset":"textvalue",
"column":"textvalue",
[ "multiselect":"true" | true | "false" | false,
[ "separator":"textvalue" ] // default separator is comma
]
[ "useForConditionalParts":"true" | true | "false" | false]
}
~%WhatToEnter{
"type":"text",
"title":"Test title",
"defaultValue":"test default value",
"required":false
}
~%WhatToEnter{
"type":"dropdown",
"title":"Test title",
"items":["item 1","item 2"],
"defaultItem":1,
"editable":false,
"required":false,
"multiselect":false,
"separator":";"
}
~%WhatToEnter{
"type":"calendar",
"title":"Test title",
"editable":false,
"required":false,
"format":"yyyy-mm-dd",
"locale":"ja-JP",
"dateDelta":0
}
~%WhatToEnter{
"type":"time",
"title":"Test title",
"format":"hh:mm",
"locale":"en-US",
"timeDelta":0
}
~%WhatToEnter{
"type":"dataset",
"title":"Test title",
"dataset":"Store list",
"column":"address"
}
Post a comment
Seen by everyone, do not publish license keys and sensitive personal info!