Mautic Community Forums

Fallback values for empty tokens

How do I indicate a falback for empty tokens in emails?



For example, I have this line in my email:

Quote:
QuoteIn helps companies like {contactfield=company} respond to requests...

Ideally, this would display the contact's company name, but if the field is empty, it results in:
Quote:
QuoteIn helps companies like respond to requests...

I would like to do something like this: {contactfield=company fallback='your company'} where it uses standard text if the field is blank. This would set the indicated text to the following:
Quote:
QuoteIn helps companies like your company respond to requests...

Is there currently a way to do this?

How do I indicate a falback for empty tokens in emails?

For example, I have this line in my email:

Ideally, this would display the contact’s company name, but if the field is empty, it results in:

I would like to do something like this: {contactfield=company fallback=‘your company’} where it uses standard text if the field is blank. This would set the indicated text to the following:

Is there currently a way to do this?

Anyone? I’m looking for the same thing…