If I try and set a default value for width in an iframe field settings the value is not retained after submitting the field edit form, and it is not exported in config.

Other settings such as token support, class, transparency etc save as expected, but not those in the 'Default values' fieldset.

Issue fork iframe-3136664

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Phil Wolstenholme created an issue. See original summary.

Phil Wolstenholme’s picture

Looks like the same issue as #3101171 except that issue is tagged with the wrong version number and only covers the URL default value.

Edit: I was wrong about the above, #3101171 is saying there is no field to provide the default URL value, whereas my issue seems to be that I have the fields for URL, width, height, etc but the values I put into those fields are not saved.

I think default field values is something Core provides options for all field types so it's something users would expect to work in the same way as other field types. Otherwise, the fieldset should probably not be shown.

efes’s picture

I can confirm this issue. Will there be any solution?

FatherShawn made their first commit to this issue’s fork.

fathershawn’s picture

Status: Active » Needs review

The lack of default settings is preventing the save. Also added a schema file. Merge request opened

  • FatherShawn committed 8aefe43 on 8.x-2.x
    Issue #3136664 by FatherShawn: Cannot set default field values (e.g. url...
neffets’s picture

Version: 8.x-2.6 » 8.x-2.x-dev
Status: Needs review » Fixed

Is working - big Thanx!!!

  • neffets committed bfd830d on 8.x-1.x authored by FatherShawn
    Issue #3136664 by FatherShawn: Cannot set default field values (e.g. url...
fathershawn’s picture

Happy to help @neffets

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.