---
title: Customize End Page
slug: lms/customize-end-page
docTags: 
createdAt: 2022-04-24T07:48:23.000Z
---

## Custom Ending

Custom Ending feature can be used to show a customized result to the user based on their performance in the Quiz. It is useful to deliver different call to actions by segregating candidate performance.

## How to use Custom Ending

1. After opening a Quiz, add **/custom-ending&#x20;**&#x61;t the end of the URL. If your URL after opening the quiz is **https\://socratease.co/cms/units/abcd** the new URL will be **https\://socratease.co/cms/units/abcd/custom-ending&#x20;**&#x20;It will appear as shown below.&#x20;




![](https://api.archbee.com/api/optimize/sIThB0ZiqhR6tdk4fXm2D/-9-Rx6ZqRepvqXNj2AnfS_screenshot-2022-04-26-at-103748-am.png "Custom Ending Page")



&#x20;  2\. You can replace the default ending with the custom ending or prepend it to the default ending by toggling this button.



::Image[]{src="https://api.archbee.com/api/optimize/sIThB0ZiqhR6tdk4fXm2D/9VndudjUSrMtsJ2X7kLG6_screenshot-2022-04-24-at-61533-pm.png" size="60" width="609" height="40" caption="Positioning Custom Ending" position="center" showCaption="true"}

## Terms to define Custom Ending

**Primitive Variables**

These are the variables that can be used directly in the custom ending template. For example:&#x20;

You have scored <u>10</u> points by answering <u>5</u> questions correctly.&#x20;
The underlined numbers indicate Primitive Variables which are displayed as per the candidate's performance in the Quiz.

Five primitive variables are pre-defined.

1. &#x7B;&#x7B;points\_aggregate}} : Defines total points scored in the Quiz
2. &#x7B;&#x7B;num\_attempted}} : Defines number of questions attempted in the Quiz
3. &#x7B;&#x7B;num\_correct}} : Defines number of questions answered correctly in the Quiz
4. &#x7B;&#x7B;num\_wrong}} : Defines number of questions answered incorrectly in the Quiz
5. &#x7B;&#x7B;time\_taken}} : Defines the total time taken to attempt the Quiz

**Derived Variables**

These are the variables defined using primitive variable. For instance, remarks on the candidate's performance can be a function of two or more primitive variables defined above. You can set the derived variables using the Conditions section detailed below.

**List of Variables**

This is the section where you can label your derived variables. Label should be unique and can only have small letters and underscore. You can set a custom message for each label under Default Value.



![](https://api.archbee.com/api/optimize/sIThB0ZiqhR6tdk4fXm2D/0uSLDwprrBuuwlEU9XWmL_screenshot-2022-04-26-at-92300-am.png)



**Conditions&#x20;**

While setting Conditions, you can assign values to Primitive Variables. To add more than one **And** statement for a Condition, use the **Add Subcondition** buttton.



![](https://api.archbee.com/api/optimize/sIThB0ZiqhR6tdk4fXm2D/JnwIOpwaZoJPlGtWaOdid_screenshot-2022-04-26-at-103600-am.png "Adding Conditions to Custom Ending")

**HTML template**

The HTML template can be edited to change the image and text in the Custom Ending after all variables and conditions are defined.
**For image:&#x20;**&#x43;hange the link in `src="link"`
**For text:&#x20;**&#x46;or ease of editing, your primitive variables are listed using the green buttons. Click on any button to copy the variable and paste it in the HTML template using CTRL+V on Windows and ⌘ Cmd + V on MacOS.

![](https://api.archbee.com/api/optimize/sIThB0ZiqhR6tdk4fXm2D/SWGF8CDtjsyYyqv5nMt8c_screenshot-2022-04-26-at-113135-am.png "HTML Template")



**Preview**

This is part where you can preview the Custom Ending page as defined using all the sections discussed above.

You can preview the image, different variables that you have defined and the custom messages for all cases.

![](https://api.archbee.com/api/optimize/sIThB0ZiqhR6tdk4fXm2D/RDuwn4vUISyud_qfqcDP0_screenshot-2022-04-26-at-113343-am.png "Preview for Custom Ending")









