Problem/Motivation

When using an iframe field - in my case in a paragraph but I'm not sure that matters - if you set the Iframe field widget in the Form display settings to 'URL only, the manadatory Iframe Title input field still appears in the edit form and so we are forced to set one...

iframe field form display screensho

My configuration

Web Server: Apache/2.4.33 (Win64) OpenSSL/1.0.2u mod_fcgid/2.3.9 PHP/8.1.0
PHP: 8.1.0 
Database: MySQL 5.7.24

8.x-2.20 in Drupal 9.48

The behaviour is the same in the 8.x-2.20 version of the module but in that case, the field not not appear to be manadatory so we get away with it! ...

iframe field edit screenshot

Thanks all for any guidance here

Comments

SirClickALot created an issue. See original summary.

sirclickalot’s picture

Issue summary: View changes
neffets’s picture

Status: Active » Closed (works as designed)

Works as designed.

The formular-switcher allows
* "URL with width and height" - asking for url and width and height
* "URL with height" - asking for url and height (no width, so its using width 100% of outer element)
* "URL only" - asking the user only for URL and using default width and height given by the admin

The "title" is always needed for accessibility issues. And asked for in all three cases;