The variable format types in email, web content, or push notifications allow you to contextualize and control how data is displayed. This enables you to further personalize each contact's experience, increasing loyalty and conversion for your dynamic content.
1. Properties
Variables created in Connectif have an assigned format, which determines how the data stored in its corresponding field should be displayed.
In Connectif, there are five types of formats:
- No Format: displays the data exactly as it was assigned, without any formatting. It is typically used to store text data.
- Number: allows you to define the format in which decimals and thousands are represented and displayed.
- Date: allows you to define the format in which a date is represented: numerically, textually, or in ISO 8601 format.
- Currency: always represented with two decimal places and accompanied by the currency symbol configured in the store.
- Percentage: always represents data with the percentage symbol (%) and allows you to configure whether or not to display decimal places.
- HTML: used to store HTML code that will be interpreted by the browser and displayed in the content.
When creating a variable, it is possible to define a default value, which will be automatically assigned when there are no values to link from the data source.
If a variable has no value, nothing will be displayed on the screen.
2. How It Is Used in Connectif
2.1. Edit the Format and Default Value of a Variable
1. Create a new variable from a web or email content. If you have already created it, access it by editing the content in question.
2. In the editor, click on the Variables tab.
3. Click on (Edit).
4. In Default value, add the value you want the variable to acquire when there is no data stored in the corresponding field.
5. In Data type, choose the desired format.
6. Click Accept to save the changes to the variable and Save to save the modifications to the design.
Keep learning!
To make the most of your Connectif account, we recommend continuing with the following articles:
- Display personalized products in content, to show products using variables.
- Display discount percentage only when a discount exists in an email, to show the discount percentage only on products that are on sale.
- Advanced variable assignment, to work with additional filters when selecting the data with which to personalize content.
- Predefined variables for personalizing emails and content, to use system variables in your content.