Add support for SELECT elements as source for recipients, cc and Ajax params

Created on 14 September 2024, 3 months ago
Updated 19 September 2024, 3 months ago

Problem/Motivation

The form using proc might hold the id of reciepients/CCed users or the value of Ajax parameters in a SELECT element. The current JS code expects the form elements to be INPUT elements. This patch extends support for SELECT also.

Steps to reproduce

1. Create a form using proc field
2. Inside the form, create a field like

<select name="user-id">
  <option value="1">One</option>
  <option value="2">One</option>
</select>

3. In proc widget, use the user-id name as the source for receipient/CC and/or Ajax params.

Proposed resolution

Add select selectors to the document.querySelector expressions.

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

Note: This patch includes the change proposed in https://www.drupal.org/project/proc/issues/3474333 🐛 Incorrect match of element by id/name Active

Feature request
Status

Active

Version

10.1

Component

Documentation

Created by

🇷🇴Romania abautu

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

Comments & Activities

Production build 0.71.5 2024