A
A
Alex May2021-02-10 00:56:21
Drupal
Alex May, 2021-02-10 00:56:21

Drupal8 WebForm how to enable display of remote server response?

Good afternoon

I've been fiddling around with displaying a remote server response for a few hours with no results when using a webform and Posts webform submissions to a URL.
From the form, the request goes to the server, the server issues a JSON/TEXT response. Problem - I can't display the contents of the response in the confirmation message.

How it should work:
the webform says: Name: Sasha
remote server replies {"msg":"Hello Sasha"}

I can't solve the task of showing "Hello Sasha" in the confirmation message.

It turns out to write the server response in the webform submission (using [webform:handler:remote_post:completed:msg], but there is no way to display it without writing it.
Please help...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question