---
title: Placeholders in messages
slug: experience/placeholders-in-messages
description: In the Purple Experience Builder, assume you would like to add an extra variable to recipe-infos-time via variables field in views.json, that you want to style accordingly. At the same time, you want to fertilise the clean use of data by your editors.
docTags: 
createdAt: 2023-08-31T12:18:07.473Z
---

### Scenario

You want to add an extra variable to recipe-infos-time via the variables field in views.json in your Purple Experience.&#x20;

![Messages.json](https://api.archbee.com/api/optimize/ygR6KtT9QI_R0u3uKTJsm/HWRBl1sQOUKS7avpYXkPN_microsoftteams-image-1.png "Messages.json")

:::::WorkflowBlock
:::WorkflowBlockItem
Add a new placeholder in the `messages.json`, RECIPE\_INFOS\_TIME: `%s` is a placeholder.
:::

::::WorkflowBlockItem
Add a new entry to the "variables" in your `views.json` and pass it  in the data you want it to replace the `%s` with, e.g.&#x20;

:::BlockQuote
$functions.formatTimeString($context.content.properties.\<YOUR\_DEFINED\_PROPERTY>)﻿
:::
::::
:::::

![views.json](https://api.archbee.com/api/optimize/ygR6KtT9QI_R0u3uKTJsm/Weo9am2vVt0GqZK5aZiWj_microsoftteams-image-2.png "views.json")

