You might have encountered an error while referring a named formula in a control.

Let me show you an example of the error and how to fix it.
Reason and Fix:
- I created a named formula ‘loggedInUserEmail‘ to capture the logged-in user’s email as below.

- Lets add a Label control and map the ‘loggedInUserEmail’ formula to the ‘Text’ property.
- But the app is giving an error that it doesn’t recognize ‘loggedInUserEmail‘.

- So, what’s the issue? It’s simple; you need to end the named formula declaration with a semicolon (;) always. Add the semicolon to the end of ‘loggedInUserEmail‘ and give it a try.
- Observe the screen below. Adding a semicolon (;) resolved the issue, and now the Label control displays the email.

Refer previous post on Named Formulas, if you are a beginner.
🙂

![[Step by Step] Beginner : Create a PCF control and add it to a custom page](https://rajeevpentyala.com/wp-content/uploads/2024/12/image-49.png)

Leave a comment