From 2217bfb17c5e9c9e58e23a7bf8423e2cbc2a92bc Mon Sep 17 00:00:00 2001 From: ab-jquinn Date: Wed, 5 Nov 2025 13:53:54 -0600 Subject: [PATCH] Update value of `$key` in smart-code.md The current document uses two different values for the $key value. On line 11, the value of `$key` is `your_custom_smartcode_group_key`. On line 47, it is represented as `{{your_custom_section_key.code_4}}`. Using the demo code from line 11, line 47 should be `{{your_custom_smartcode_group_key.code_4}}` --- src/modules/smart-code.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/smart-code.md b/src/modules/smart-code.md index e03f804..c0aee07 100644 --- a/src/modules/smart-code.md +++ b/src/modules/smart-code.md @@ -44,7 +44,7 @@ that should be returned when the shortcodes are used. If the shortcode is code_4 The callback function has four arguments: - `$code`: This is the shortcode that is used in the email. In our example, `$code` will be ::: v-pre - `{{your_custom_section_key.code_4}}` + `{{your_custom_smartcode_group_key.code_4}}` ::: - `$valueKey`: This is the key of the shortcode. For example, if the shortcode is `code_4`, then the `$valueKey` will be `code_4`. - `$defaultValue`: This is the default value that will be returned if the `$valueKey` is invalid.