Our SMS templates are all made in email templates. I'm trying to add a way to automatically add opt-out language as a footer of every sms template we create automatically, and my plan was to do that by adding a custom type that lets you choose between email and sms, and when sms is chosen it automatically appends the opt-out language I want at the end of a template. The problem I'm having is I can't add that type field. The UI won't let me even touch the email template entity, and I tried to add it to the back end by adding this newly made file
metadata/entityDefs/EmailTemplate.json
{
"fields": {
"templateType": {
"type": "enum",
"options": ["Email", "SMS"],
"default": "Email"
}
}
}
and in layouts I made an EmailTemplate folder with a detail.json and edit.json file with the following code:
[
["name", "templateType"],
["category"],
["subject"],
["body"]
]
But this did not work.
metadata/entityDefs/EmailTemplate.json
{
"fields": {
"templateType": {
"type": "enum",
"options": ["Email", "SMS"],
"default": "Email"
}
}
}
and in layouts I made an EmailTemplate folder with a detail.json and edit.json file with the following code:
[
["name", "templateType"],
["category"],
["subject"],
["body"]
]
But this did not work.
Comment