# Using Ionic Toggle and Button Together In Workflow

**URL:** <https://forum.bubble.io/t/using-ionic-toggle-and-button-together-in-workflow/324469>\
**Category:** Need help\
**Created:** [May 29, 2024, 7:35pm UTC](https://forum.bubble.io/t/using-ionic-toggle-and-button-together-in-workflow/324469 "2024-05-29T19:35:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chadrwyatt](https://avatars.discourse-cdn.com/v4/letter/c/eada6e/32.png) [@chadrwyatt](https://forum.bubble.io/u/chadrwyatt)\
**Post date:** [May 29, 2024, 7:35pm UTC](https://forum.bubble.io/t/using-ionic-toggle-and-button-together-in-workflow/324469/1 "2024-05-29T19:35:42Z")

</div>

Hi,

I am fairly new to bubble and am stuck.

Basically, I am creating a process where the user can select one or multiple options and depending on those options (toggles) the OpenAI API will run a different instruction and the output will be different.

I managed had everything working until I started adding multiple workflows and toggle buttons. Now the output either only uses one workflow or doesn’t work. I have also created a custom workflow from the toggle but that causes the API to run as soon as it’s toggled which I don’t want.

What do I need to add to the workflow to get the API part to take into consideration the input of the toggle? (the instructions inside the API are custom to account for the changes).

so it would be Toggle \> Button Click Generate \> API Call \> Text Output

Thanks for the help

 ![Screenshot 2024-05-29 at 21.31.29](https://us1.discourse-cdn.com/bubble/original/3X/f/9/f93b701d35b983d538574f9e889531622ee97f10.png)  
 ![Screenshot 2024-05-29 at 21.31.19](https://us1.discourse-cdn.com/bubble/original/3X/7/6/767b35831a2f64c8ecba7dfcb13d3c18fb5ac3c8.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [August 7, 2024, 7:36pm UTC](https://forum.bubble.io/t/using-ionic-toggle-and-button-together-in-workflow/324469/2 "2024-08-07T19:36:42Z")

</div>

Closed on August 7, 2024, 7:36pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
