on 2024 Jul 10 8:34 AM
Hey,
I need some help with simple scripting in SAC analytics.
I've created a dropdown button with 3 options, and for each of them I have a different data action that I want to activate (having the prompt window popping up)
1. do I have to place those data action triggers in the story? if yes how can I hide them?
2. what is the script I should write down to have it done?
thank you
Deb
Request clarification before answering.
Hi @Deb_D,
Suppose you want the data actions to execute just by clicking on the dropdown options without having the data action triggers in the story. In that case, you can create "Data Action" script objects which is there in the outline, and assign data action in each object.
Use the below script in the onSelect() event of the dropdown.
if(this.getSelectedKey()==="DA1"){
DataAction_1.execute();
}
else if(this.getSelectedKey()==="DA2"){
DataAction_2.execute();
}
else if(this.getSelectedKey()==="DA3"){
DataAction_3.execute();
}
I hope this is what you're expecting.
Thanks and Regards,
Vijay Bhaskaran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
33 | |
21 | |
16 | |
8 | |
7 | |
6 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.