I'm afraid I'm missing something obvious, so please forgive me if that is the case.

I would like to use a token to populate an input. I don't wan't the anonymous user to be able to edit the value, but I would like them to see the value in the field. In Drupal 7, I could check the "disabled" box for this functionality. (See screenshot) I've been looking a while and have not been able to find the setting.

Does this functionality exist in the Drupal 8 version of Webform? If so, how do I enable it?

By the way, thank you for the great module. I'm so excited to see the rapid advancement in the Webform module!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

Shawnolt created an issue. See original summary.

jrockowitz’s picture

FileSize
261.23 KB

Adding disabled support should be easy to implement. For now, you can add disabled: true to your custom properties.

  • jrockowitz committed 3ae504e on 2872505-disabled-element
    Issue #2872505 by Shawnolt, jrockowitz: Where is the "disabled" checkbox...
jrockowitz’s picture

Status: Active » Needs review
FileSize
18.66 KB

  • jrockowitz committed 217928c on 8.x-5.x
    Issue #2872505 by jrockowitz, Shawnolt: Where is the "disabled" checkbox...
jrockowitz’s picture

Status: Needs review » Fixed

I committed the patch. Please download the latest dev release to review.

  • jrockowitz committed 9dc1380 on 8.x-5.x
    Issue #2872505 by jrockowitz, Shawnolt: Where is the "disabled" checkbox...

  • jrockowitz committed 498deb9 on 8.x-5.x
    Issue #2872505 by jrockowitz, Shawnolt: Where is the "disabled" checkbox...

  • jrockowitz committed ae17bad on 8.x-5.x
    Issue #2872505 by jrockowitz, Shawnolt: Where is the "disabled" checkbox...
Adrian83’s picture

I upgraded to the dev version (being on the same project as Shawnnolt), checked the box, and bingo, the field is disabled! This was on a text field type.

Thank you for your quick response. Your are doing quite a service for the Drupal community!

Status: Fixed » Closed (fixed)

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