Client side logic
Client side logic unit run on visitor device. They are used for actions like changing flow, showing alerts etc.
Available Inputs in Client Side Logic Units
Input | Description |
---|---|
Score of screen | Total of screen on weight based |
Input of screen | Input of screen |
Execute JavaScript | Execute JavaScript |
Available Operations in Client Side Logic Units
Operation | Description | Format example for value to match |
---|---|---|
Force Always True | True in any condition | No value to match |
Correct Answer | If given answer is correct (Score forms only) | No value to match / requires load answer check |
Wrong Answer | if given answer is incorrect (score forms only) | No value to math |
Equal | Check if input is equal to output | 0 1 [0,1] "Nabeel" |
Not Equal | Check if input is not equal to output | 0 1 [0,1] "Nabeel" |
In List | Check if input is In List to output | [0, 5] |
Not In List | Check if input is Not In List to output | [0,1,4, 5] |
Have | Check if input contains values to match | 1 |
Not Have | Check if input contain values to match | 1 |
In Range | Check if input is In Range to output | [0, 5] |
Not In Range | Check if input is Not In Range to output | [3, 5] |
Less Than | Check if input is Less Than to output | 3 |
Greater Than | Check if input is Greater Than to output | 1 0 |
Less Than or Equal | Check if input is Less Than of Equal to output | 1 0 |
Greater Than or Equal | Check if input is Greater Than or Equal to output | 1 0 |
Available Actions in Client Side Logic units
Action | Description |
---|---|
Set Group Value | Set Group Value |
Add Group Value | Add a number to Value Group |
Set Input | Override input of given screen index |
Multiply Group Value | Multiply Group value by number |
Alert | Show alert message |
Change Flow | Change Next Screen |
Change Flow Backward | Change Previous Screen |
Multiply Screen Score | multiply number to weight point of screen |
Add To Screen Score | add number weight point of screen |
Define Variable | Define variable |
API Call | Call API Function |
API Call
In this action, provide JavaScript function name and argument from JavaScript API. Arguments must be according to type. For example, Strings are like "Hi"
, numbers are like 0
and list of number and string is like 0, "My Screen Title"
API Call
In API Call action, use the function those don't have return value.
Note
Score is the either score in score based forms or weight in analytical forms.