Forum Academy Marketplace Showcase Pricing Features

Pass query parameter to API, show API result in text element

My flow is as simple as follows:

  1. Fetch query parameter (a button click or page load can trigger this)
  2. Make API call with query parameter,
  3. Display results of API call in a text element.

How do I create the above flow? I already created the API as a plugin whose body data needs a parameter that I must pass from a Query string. Example:


I do see you can get url parameters in an element, what I am missing is connecting all the steps together.


Set a state on the text element, type text, make sure the api call is of type ‘action’. Run the api call with the parameter and set the result to the text state.

The text elements initial content will be that text elements state.