I’m developing a form inside a popup that uses two different APIs, one for my database (Xano) and another API for fetching query data from an external app.
How it works:
If the user clicks on insert a new record, he will use the API of the external app to fetch some data that will fill in the form fields.
If the user clicks on edit the record, he must use the API to connect to my database (Xano) and bring the data.
I don’t know how to make this connection, I tried by customers states, using conditional and I couldn’t solve this problem.
For more details follow my application link https://pc002-sales.bubbleapps.io/version-test
Hi paulo, without you getting more in-depth with your setup, there isn’t much else we can do. I can offer you my services to get you all set up if you’d like. Otherwise you may need to explain in more detail.
Your link doesn’t work. Had to copy and paste the actual text.
I will try to put more details. But think of a CRUD.
In my app there is a list of registered contacts, when clicking on any of these contacts it opens a pop-up, at that moment I have to use the database api that is in xano.io, because I have to use the api of database that is in xano.io (because I’m going to do an update.
Right below, at the bottom of the screen, there is a button with icon +, when clicking it will perform the insertion of a new record, the form is blank and when inserting a record in the CNPJ/CPF input it uses another API to fetch the data, this API (https://publica.cnpj.ws/cnpj/[CNPJ]) this is a public API that validates if the CNPJ exists and brings information about it and helps to fill out the form.
For API testing use this value 45445741000114
In short, to update the registration the data has to come through my bank’s xano.io API and to insert a new record I use the public API query to help fill out the form.