Skip to content

Commit aa8be17

Browse files
authoredApr 15, 2025··
Update Custom Certificates.md (#309)
updated with a screenshot on how to properly use "split by condition" to validate if the contact variables contains a value before sending the certificate
1 parent 39575bd commit aa8be17

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎docs/3. Product Features/Custom Certificates.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,11 @@ To change the page dimensions for a google slide
135135
#### 1. Use the following validation before the `create_certificate` webhook call to ensure that the certificates are not generated for contacts for whom the placeholder parameters value is not present
136136

137137
- a. Use the below expression to check if the variables being sent in the webhook indeed have a value for the given contact and do not end up printing a certificate like error 1 shared above.
138-
`<%= ["@contact.name", "@contact.abcd"] |> Enum.any?(&String.starts_with?(&1, "@")) %>`
138+
```
139+
<%= ["@contact.name", "@contact.abcd"] |> Enum.any?(&String.starts_with?(&1, "@")) %>
140+
```
141+
![File → Page Setup (15)](https://github.com/user-attachments/assets/d1b0235d-7624-4f12-97b2-df70905641ef)
142+
139143

140144
- b. For more than 2 variables, add further commas in the first list and add the variable names in double quotes.
141145
- c. For just one variable, use split by custom expression and plainly enter the name of the variable and check for the condition “has only the phrase” and the variable name as shown in the screenshot.

0 commit comments

Comments
 (0)
Please sign in to comment.