Calling External API's

Can I make a form_card call an exeternal API, and display his result on a label ?

Hi @rmfjd78,

yes, it is possible. The flow should be:

  1. Render your desired form_card.
  2. Listen on form submission:
if q.args.form_item_name:
     # call the external API
     q.page['key].componentToUpdate = apiResult # update UI based on API response

But the API call should be made in python, i was thinking in creating a button and on the button click call the api and put the result on an page what do you think?

Not sure what you mean. All the code has to be in python. You use it to control both the server and your UI.