Problem/Motivation

If a form #type is set to "hidden" then it is not disabled using #state disabled. I tested changing the #type to textfield and it worked fine.

Proposed resolution

The input should be disabled even if it's #type is set to hidden.
(not sure how to make this change on code)

File: misc/states.js

#1263302: States API disabled state handler filters out nonexistent class "form-element" and doesn't disable certain form element types

Comments

andypost’s picture

Version: 7.x-dev » 8.x-dev

@Mac_Weber input type hidden does not support disabled property by it's nature before html5 http://www.w3.org/TR/html-markup/input.hidden.html

See http://www.w3.org/TR/html401/interact/forms.html#h-17.12

So this issue only about D8 that supports html5

nod_’s picture

Issue tags: +JavaScript

tag

mac_weber’s picture

@andypost There is no difference betwen HTML 4.01 to HTML5.

Differences Between HTML 4.01 and HTML5

NONE.

source:http://www.w3schools.com/tags/att_input_disabled.asp

nod_’s picture

Status: Active » Closed (won't fix)

That was easy :)

nod_’s picture

Issue summary: View changes

Better description