0

Swap buttons in Flow

490 0 2
Posted   4 months ago

How do I swap/toggle buttons in Flow when changing the state of a Capture sim? I'm wanting my buttons/content to do the same thing it does in the Authoring in DominKnow guide.

(https://share.cds.dominknow.one/934f0ed62cf21edb17852afcf128a8ad/7f58252b-4f1c-306a-ac7d-e9e347c4f1ca/00366C59-9C27-BAF3-A6F2-DB185AB69E68/index.html) 

 

Comments

( 0 )

Answers  ( 2 )

1
Posted   4 months ago
  ●   Edited   4 months ago

Adding to Paul's info: if you want to allow the learner to swap back, you'll need to show a second button with the other Switch Capture State action (you can only set one of these Switch Capture State actions on a single button) and hide the first button.

An alternative could be to use a Toggle (Insert tab >> Inputs >> Toggles) - the Toggle can set a variable and you can then evaluate the variable's value to do the Switch Capture State action. 

Comments

( 1 )
0
4 months ago     jason.everhart     19   |   2  

Thank you!

0
avatar Paul Schneider   |    
Posted   4 months ago

Add an action to a button (or any item you like).  Under Media and Timers actions categoriy you will see the options for Capture. The option you want is Switch Capture State. You can choose that option and then select the desired Capture and then pick what you would like the mode switched to.

Comments

( 1 )
0
4 months ago     jason.everhart     19   |   2  

Right. I have that part figured out. How do I make the state of the buttons switch so that it either toggles between buttons or the text changes on the buttons? I'm not sure how you did that part.