Can't create new Social Link field in Drupal 10

Created on 22 December 2023, 12 months ago
Updated 1 March 2024, 10 months ago

Problem/Motivation

When you create a new Social Link field in Drupal 10, you will get the error "The submitted value in the Social network element is not allowed." when saving the field settings.

The issue seems to be with the "default value" option not displaying the field form correctly (this isn't affected by checking or unchecking the default value checkbox):

You can work around this by opening up the DOM and manually setting the value of the hidden Social network input:

Once you do that, you can save the form and the field will be created. Afterwards, if you go back to the field settings, the default value form items display as they should and you can remove the default value and save the form with no issues:

Steps to reproduce

Attempt to create a new field of type Social Link in Drupal 10.

🐛 Bug report
Status

Fixed

Version

2.0

Component

User interface

Created by

🇺🇸United States JBHUTT09

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

Comments & Activities

Production build 0.71.5 2024