Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Morten Andersen 2 posts 72 karma points
    Mar 14, 2019 @ 11:47
    Morten Andersen
    0

    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.

  • Bharti 8 posts 74 karma points
    Apr 01, 2019 @ 09:08
    Bharti
    0

    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/

Please Sign in or register to post replies

Write your reply to:

Draft