Improve the documentation for #ajax['trigger_as']

Created on 21 May 2010, about 14 years ago
Updated 29 January 2023, over 1 year ago

This setting was added by #684846: AJAX triggered by non-submit element fails if any elements are validated → . It is an array that provides a 'name' and an optional 'value' (for the case when different buttons have the same 'name', such as "op" or "submit"). These should be the same #name and #value info the of the element that triggers the form submission. #name encodes the parents of the element in it, the same as form_set_error(), i.e. "level1][level2][element", though this is dependent on the value of #tree.

📌 Task
Status

Active

Component

API documentation files

Created by

🇺🇸United States Island Usurper

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024