Can I make a form_card call an exeternal API, and display his result on a label ?
yes, it is possible. The flow should be:
- Render your desired
- 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.