Problem/Motivation

Is there any way to fetch email type element ('#type': email) and its value from webform in drupal 9.

As i have different key name for email type field in each webform. I don't want to fetch field value by its key to avoid hard coding instead want to check for email type webform element ('#type': email) and fetch email value accordingly.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

narendragupta created an issue. See original summary.

narendragupta’s picture

Issue summary: View changes
jrockowitz’s picture

Category: Task » Support request
Status: Active » Closed (won't fix)
The Webform module's issue queue is for bugs, feature requests, and planning. Please post general support questions to Drupal Answers. You can also ask questions or help answer questions on the #webform channel on Drupal Slack.

You would have to write custom code to track all the email element keys and build a custom query.

Also see https://www.drupal.org/project/webform_query