API endpoint to retrieve rendered webform HTML

Created on 29 May 2024, 7 months ago
Updated 4 June 2024, 7 months ago

Problem/Motivation

It would be nice if there was an API endpoint to retrieve the rendered HTML of a webform.

I'd like to use drupal webforms to build forms but want to show the forms in another web application.
I don't want to implement all the field rendering myself but want to rely on drupal's functionality for that.

By using the /webform_rest/{webform_id}/elements (or .../fields) endpoint I only get the configuration of the single fields, but no completely rendered HTML.

Proposed resolution

The endpoint /webform_rest/{webform_id} or /webform_rest/{webform_id}/html could return the HTML.

Feature request
Status

RTBC

Version

4.1

Component

Code

Created by

🇩🇪Germany cweiske

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024