Help with targeting a Form element

Created on 6 May 2025, about 1 month ago

Problem/Motivation

I am trying to use ECA Helper to adjust the help text on a Group form.

I know that I am targeting the correct for becase at the end of the ECA I pop up a Message to say so.

However I don't think I have properly understood have to target a form element for change.

Event: Prepare content entity form
Action: ECA Helper: Form field set value

Detail as illustrated below...

I am not seeing any alteration to the value of the #edit-entity-id-0-target-id--description

The markup of of the form is...

<form class="group-relationship-class-group-node-article-add-form group-relationship-form gin--has-sticky-form-actions" data-drupal-selector="group-relationship-class-group-node-article-add-form" action="/group/1/content/add/group_node%3Aarticle" method="post" id="group-relationship-class-group-node-article-add-form" accept-charset="UTF-8" data-once="ginEditForm">
...

<div id="edit-entity-id-0-target-id--description" class="form-item__description">
  The title of the node to add to the group
</div>
...

</form>

It is simply the content of the #edit-entity-id-0-target-id--description" class="form-item__description that I am trying to alter by adding "XXX" on the end.

I have also tried to adjust the Save button value by using following the guidance...

Use "submit" for the labeled "Save" button, and "preview" for the labeled "Preview" button...

But nothing I try seems to work.

I'm sure I have misunderstood but can anyone nudge me in the right direction please.

Thanks

💬 Support request
Status

Active

Version

2.0

Component

Miscellaneous

Created by

🇬🇧United Kingdom SirClickALot Somerset

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

Comments & Activities

Production build 0.71.5 2024