Display a Learner's Name Using Logic
Outline
In this article, we’ll take a look at how you can use variables to manually store a learner’s name and reuse it elsewhere in your Evolve course. We'll cover:
- Creating the variable
- Using a component to save the response
- Using variable responses in components
Things to note
This article currently shows the manual process of pulling a learner's name using Logic. This process differs from the automated process of pulling a learner's name into your Evolve course via an LMS (learning management system).
Create a variable
First, you will need to create the variable that the learner's name will be stored in. Follow the steps below to create the variable:
- In your Evolve course, click Logic
- Click Variables
- Click Add Variable
- Give your variable a title, for example, "learner name."
- Select your variable type. In this case, it will be string.
- Set a default value, for example, "learner." To note, the default value is the text that will be shown until the learner inputs their response.
![](https://cdn.exceedlms.com/uploads/resource_images/targets/4445463/page_large/add-variable.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uZXhjZWVkbG1zLmNvbS91cGxvYWRzL3Jlc291cmNlX2ltYWdlcy90YXJnZXRzLzQ0NDU0NjMvcGFnZV9sYXJnZS9hZGQtdmFyaWFibGUucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzIyMDY1NjEwfX19XX0_&Signature=dopPcMxi1CVpimhV3QcNJBtPQ1qtHLun4t~WDEK1Bln7Uycu8of~8PTNSfPGOnrTbYEUmDzCPHWECNKiC7Vua7P0q6ZgfdfoDesN8CWpJ77Emyc5R3pfTPaFLVCYmc0jSalqxB6J6Kvm0iItcTJMdIGig1~PYcJHcTJAH2dXIGH-9XN0XG1ycgq3s9MIy9bzfTJ0-9ak3JP3~R3FVodDJZ6rLvcDdZfgMDdklBZVVDCDuiOeQ10nYsaDTlg~K2pvtFDL-j6wzpDKWJfcm1Lkskvj5x06Z5d5Sg8tmGMhKx2Oyc0L7hAG07vsGFGQnk3L0r4Y3w2vDBQ9N30b2ulwXw__&Key-Pair-Id=APKAJINUZDMKZJI5I6DA)
You’ve now created your variable and it’s ready to be used in a component.
Save the learner response
To store a learner’s response to a variable, you will need to use a component that allows you to save inputs to a variable.
Head over to the page builder and click Add Component.
Select a component that allows you to save responses to variables, such as Text Area and add to the course.
Set the Save User Answer Variable toggle to on and select a variable from the dropdown list.
![](https://cdn.exceedlms.com/uploads/resource_images/targets/4445491/page_large/component-variable.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uZXhjZWVkbG1zLmNvbS91cGxvYWRzL3Jlc291cmNlX2ltYWdlcy90YXJnZXRzLzQ0NDU0OTEvcGFnZV9sYXJnZS9jb21wb25lbnQtdmFyaWFibGUucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzIyMDY1NjEwfX19XX0_&Signature=ZAADY71InjcCWT8pZX0mfSvMqbEj9vnLf60FrGL6p2EjUSfgSLIYxlhvfcqaL43GLZNti5cmxnLnNljnWElz5s8LuFJAvBYo~c2xiLPwFKGDR3cuFmEqQo36yK-JC1aBapEMET6JoARV0Iukga8QcDgVq31BRdS5YaXpVUmqNH5xQgP7gzDCU18mjy4AXX5VJkbIvXrYplkblxaS3Sv1GuvK6oLLpBZF3azipqE62Z3AB1Rnz3uy~FVHNNdrs-uTrC05H8z6peD2CURZCcmS2aGsaPAAJU0Rejcqt7JBGI3gBSx0m0~G-obpbNpq72qEddflMv-Zl9l8bpRHqxYPwA__&Key-Pair-Id=APKAJINUZDMKZJI5I6DA)
The component has now been set up to store the learner’s response in the variable.
Use variable reponses in compontents
In this section, we'll take a look at how we reuse the learner’s name elsewhere in the course text using the insert variable function in the text editor. Follow the steps below:
- Go to the component you wish to use the learner’s name in.
- In the text editor, you will see an insert variable icon. Click Insert Variable.
- A pop-up will appear, find the variable you wish to use select it and press done.
- The variable has now been inserted into the text and will display the learner’s response.
- Repeat this wherever you wish to show the learner’s name.
![](https://cdn.exceedlms.com/uploads/resource_images/targets/4445511/page_large/insert-variable.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uZXhjZWVkbG1zLmNvbS91cGxvYWRzL3Jlc291cmNlX2ltYWdlcy90YXJnZXRzLzQ0NDU1MTEvcGFnZV9sYXJnZS9pbnNlcnQtdmFyaWFibGUucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzIyMDY1NjEwfX19XX0_&Signature=WKNuMFVsRh0Y2gNYfbE7UgaXcmFnczRAEMEa68D3gLj6pmmqValePj95X4Ti6~s1-HaX7G7XEA4ei1EOaifjFK-dGflvHYhxDSasjLV7BFMWukXseGVM0DylmORsRLrGuaVhTD4eGFCa5Nd3jLb-IRECY0PFmzIrn8j2Jsz2Zk~njAs-wFmNWPJldp9CdL8HMb~ik034jc-QzQ3wgm~~K3yOU1b9TvCts1LzgYT6J9j9kvPMuSHKnAE4O4M9KmEk5EynssPqy2krDUkok1HstRgarrH2ynC7mx2NC4jSoG9AB46VqvaSEJVtoa6wVO-Q6RJFRd0H2pPfaCaM7bm7nA__&Key-Pair-Id=APKAJINUZDMKZJI5I6DA)
![](https://cdn.exceedlms.com/uploads/resource_images/targets/2002011/page_regular/2021-01-12-16-27-13.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uZXhjZWVkbG1zLmNvbS91cGxvYWRzL3Jlc291cmNlX2ltYWdlcy90YXJnZXRzLzIwMDIwMTEvcGFnZV9yZWd1bGFyLzIwMjEtMDEtMTItMTYtMjctMTMucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzIyMDY1NjEwfX19XX0_&Signature=HBQI7Jeb-pQsM-iXTWGl-GQcsBpH1VGqh0zu~qXpqh2Eb~qwUMbiZdEJhAqaOY2bsCscyFZtGueMyvtnTGIgcW0JmIgeteLQg2sWtn7Wol4RQS1W-3j8RT5LNnzwkGOC60Anf0U84ZD~VuC0dcoy-KsX35vkSHhnbbbx~Ht2ik4vrsaz08cAw5V-4DBrYXu6qDTS5nOofuMubnL-ObzCWnr7uwidR3eDlywe6Xf9Yf259MyWNFwmm3dnAojq7YZvhqwIOlf7udDtix2bvUltJ9v7uAqgcCcPXtU-dMo2UZvqf8XyWy1N~-JjfZ5NPOM1~UnOm30bRqsdmutnQwu9JQ__&Key-Pair-Id=APKAJINUZDMKZJI5I6DA)
Did this article help?
Let us know by leaving a star rating or review at the top of this article.