cancel
Showing results for 
Search instead for 
Did you mean: 
intapiuser
Community Team Member
Community Team Member
Today we will create a quiz widget in Blox that will looks something like this:
This is a blox exercise to show a simple use case for custom actions.
The first step is creating a data source file.
You can create some csv with have some questions answers. The correct answer is also stored so that we can check the users answers.
You can import this data to your Elasticube
Our blox widget is relatively simple:
We add all the columns from the csv table to our blox widget as items and then create the appropriate text boxes.
Next we set up the choice set
The title is what will be displayed to the user. The value is what will be passed to our action.
Go to blox and create a new custom action
This is a simple action. We get the user's answer from our selectVal and the correct answer from the results part of our payload. We compare the correct answer and the user answer and display an alert.
Users move to the next question by clicking the carousel.
Rate this article:
Version history
Last update:
‎03-02-2023 08:31 AM
Updated by:
Contributors