When the link text is required, the link text field is disabled

Created on 14 August 2024, 6 months ago
Updated 2 September 2024, 6 months ago

Problem/Motivation

This module is very useful, but if the link text field is required inside the link field, I can't add simple text. The module disables adding text and only allows me to add options for the selection.

Steps to reproduce

  1. Create a Link field
  2. In the field configuration choose in the section Allowed link text -> Required
  3. After saving the field, go to the Manage form display
  4. Choose the Link Widget for your field
  5. Update and save the field.

Then go to Add Content and add the field link, the link text button is disabled.

Proposed resolution

Make a minor change on this function link_text_options_field_widget_single_element_link_default_form_alter to validate the options field.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇪🇨Ecuador dcasanova

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

Comments & Activities

Production build 0.71.5 2024