How to switch to a different API call when clicking a button?

Hi, I am making a tool which has a basic and advance features

I created two seperate API calls which is for basic and advance

I wish to add a switch button that will allow to swith api calls

lets say if the switch is toggled off then it will use basic api call and if its toggled on it will use the advance api call

need advice


Not sure how you developed the plugin but the solution would be to use action code on the plugin editor section.

This will allow you to use if statements and you can pass a Boolean that would determine if the code will run an advance call or basic call.

Otherwise if using API connector you’ll have to define an if statement in your buttons to run separate workflows using conditional statements either by a toggle/checkbox etc.

Hope that help.

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