Stay tuned Watch us Facebook Twitter

Thanks! We`ll keep in touch.

Sign up for our Peggy Journal

Get the latest Peggy Forms news, features and great offers!



Using HTTP data

If you need properties from your HTTP response object, you can do this blabla


Lets assume that we want a simple form with a dropdown populated by our webAPI. And we want to display some extra information about our selected item. Just add a dropdown field and an text/information field. First we setup the dropdown with dynamic content:

Debugging HTTP requests

Your HTTP response object

Lets assume that your HTTP request will deliver this JSON result:

{ success: true, myProperty: 105, data: [ { key: 1, label: "My label", body: "My description" }, { key: 2, label: "My label 2", body: "My description 2" }, .. ] }


Now you can access the property myProperty and use it in our textfield. Select your text/information field, go to the content tab and press the Select HTTP field button. In the prompt field, write myProperty and press Ok. That`s it. If you view your form you`ll see that this value will be replaced with the value in your HTTP response!


If you use HTTP to populate a list or radio buttons, like in this example, you can also use the current dataset as source. If we want to display the body text in our html/info field, simply press the Select HTTP field button and write:

The [*].data tells Peggy Pay that we want to access the dataset. From there you can enter the path to your property. In our case, it is [*].data.body.


Learn more about HTTP features

Continue reading