Hi I am setting up an accordion FAQ section nestled within a tab element. The accordion is set up using states.
Set up
The accordion works as follows.
All questions and answers are within groups, the custom state of ‘group tab 1 content’ is 0 to begin with which means all the answers are collapsed to 0 height (through conditionals). When the question A group is clicked a workflow (call it workflow 1) changes the custom state of the ‘group tab 1 content’ to 1 and the answer to question A expands to a readable height.
I have another workflow (call it workflow 2) that when the question A group is clicked the custom state of ‘group tab 1 content’ changes from 1 to 0 and the height of the answer collapses so the user only sees the question.
The Problem
When the custom state of ‘group tab 1 content’ is 1 and the answer to question A is visible I will click the group containing question A and its answer and workflow 2 will happen and then workflow 1 will happen. This only happens for some of the groups and not for others even though the set up of the different FAQ’s is identical.
Question
Does anyone know how to order the workflows so that they happen sequentially? or is there some kind of condition that I can set?
Any help is greatly appreciated! Thx!