- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 05:42 AM
Hello all,
I have to create a new custom greeting for my clients because they doesn't want the list display of topics.
So i've created a carousel and the choice they make will determine wich topic block it'll launch.
But i'm unable to select the variable in decisioning, I have only is empty or it's not empty.
Carousel options :
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 07:36 AM
Hi Theo,
You are right, we cannot check the carousel input using condition. You need to use script in branch properties to check for the selected carousel option.
You will have write a script in both of the branch properties. You can use a script like this:
(function execute() {
/* Return true or false to indicate the branch condition's applicability.
For example:
var applies = vaInputs.first_name == 'Bill' ? true : false;
return applies;
*/
if(vaInputs.choose_your_topic == 'incident')
return true;
else
return false;
})()
Thanks
Rishi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 07:36 AM
Hi Theo,
You are right, we cannot check the carousel input using condition. You need to use script in branch properties to check for the selected carousel option.
You will have write a script in both of the branch properties. You can use a script like this:
(function execute() {
/* Return true or false to indicate the branch condition's applicability.
For example:
var applies = vaInputs.first_name == 'Bill' ? true : false;
return applies;
*/
if(vaInputs.choose_your_topic == 'incident')
return true;
else
return false;
})()
Thanks
Rishi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 07:45 AM
Well it seems like when i tested that solution, i missspelled vaInputs by varInputs..
Thanks !