I am trying to create a form that should end op adding a row in my databasetable - Lets call it offers. I want to fill some of the form fields with information from an api. But i dont know how this works. I can easily make it work with javascript. But i want to make full use of Umbraco Forms.
Is it possible?
The API provides information about a company based on a search on their VAT. I want an input field inserting VAT, and then filling the other input fields with information from the API based on the VAT.
You can make use of HTTPClient for consuming any API by creating a simple Web API helper. Below is the link you can follow for accomplishing the same:-
Fill form fields with data from an API
Hello.
I am trying to create a form that should end op adding a row in my databasetable - Lets call it offers. I want to fill some of the form fields with information from an api. But i dont know how this works. I can easily make it work with javascript. But i want to make full use of Umbraco Forms.
Is it possible?
The API provides information about a company based on a search on their VAT. I want an input field inserting VAT, and then filling the other input fields with information from the API based on the VAT.
Hi Morten,
You can make use of HTTPClient for consuming any API by creating a simple Web API helper. Below is the link you can follow for accomplishing the same:-
https://codeshare.co.uk/blog/simple-web-api-helper-for-umbraco-and-mvc/
is working on a reply...