How to call REST api using Javascript in Designer?

Avatar

Avatar

mak4753

Avatar

mak4753

mak4753

22-07-2018

I want to first check if the Rest api is online or offline before actually submitting the form to the same. How can I do that using javascript in Forms Designer?

Accepted Solutions (0)

Answers (5)

Answers (5)

Avatar

Avatar

_Bruce_Robertson

MVP

Avatar

_Bruce_Robertson

MVP

_Bruce_Robertson
MVP

24-07-2018

You can also use the FormCalc functions to call a web service and I've an example with this sample Adobe LiveCycle Designer Cookbooks by BR001: Calling a RESTful web service from a PDF form.  Which also shows how to call FormCalc functions from JavaScript.

You get some do you trust this... sort of security messages, but you can select remember decision.

Avatar

Avatar

Thom_Parker

Avatar

Thom_Parker

Thom_Parker

24-07-2018

This is something you'll need to setup yourself. The NET.HTTP object provides functionality for making raw HTTP Requests.  It's a matter of setting the request parameters to match the Rest API.

Avatar

Avatar

mak4753

Avatar

mak4753

mak4753

23-07-2018

Thanks Thom for the inputs. Can you please share a sample code of the same so that I can try?

Avatar

Avatar

Thom_Parker

Avatar

Thom_Parker

Thom_Parker

23-07-2018

You can call the Rest API from the NET.HTTP object.

Avatar

Avatar

BarlaeDC

Avatar

BarlaeDC

BarlaeDC

23-07-2018

Moving to Livecycle Designer forum.