Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Everyone,
we have a following requirement. We have created buttons and these buttons should appear based on the condition we have given. below is the screenshot for reference
if we see above screen. If user selects Brand (Redmi) then only Group2 & Group 3 is appearing in Groups filter. so in the same way Buttons also Group2 & Group3 should appear and Group1 should be disappear .
here is the sample data i'm using
Load * inline [
Groups,Brand,Product
Group1,Samsung,Tab
Group1,HP,Mobile
Group1,Apple,Laptop
Group1,Lenova,Tab
Group2,Samsung,Mobile
Group2,HP,Laptop
Group2,Realmi,Tab
Group2,Lenova,Mobile
Group3,Samsung,Laptop
Group3,HP,Tab
Group3,Realmi,Mobile
Group3,Lenova,Laptop
];
Could some one can please help me how to achieve this
Thanks,
Satya
Hi @SatyaPaleti ,
Sounds like what you need to do is prevent interaction of the [Groups] column with the show/hide condition.
If you change the show hide condition like below it prevents this interaction:
=index(concat({$<Groups=>}Groups),'Group3')>0
I hope this helps with your dashboard.
Regards
Anthony
Hi @SatyaPaleti ,
There's a condition you can add to the "Enable chart" property on the right hand side. If you turn this on and add this condition for each of the buttons they will be unresponsive if the condition is not met.
=index(concat(Groups),'Group1')>0
Another option is to put the buttons into a Container and use the same index conditions above in the Show condition to "show/hide" the button all together. You can see the 3 options below.
But when you choose Realmi, Group 1 is no longer an option.
I hope this helps.
Thanks
Anthony
Hi Anthony,
Thank you so much for your response and it's working as expected.
There is a one more requirement related to this. User should make selections between these groups. Below is the screenshot for reference
he should have an option to switch between Group 2 and Group 3. So i have added an action select value in field. Then if user is selecting Group 2 then Group 3 is getting disappear. It should not happen. user always need to see the both options like Group2 & Group 3.
Below is the screenshot for reference
Thanks,
Satya
Hi @SatyaPaleti ,
Sounds like what you need to do is prevent interaction of the [Groups] column with the show/hide condition.
If you change the show hide condition like below it prevents this interaction:
=index(concat({$<Groups=>}Groups),'Group3')>0
I hope this helps with your dashboard.
Regards
Anthony