Questions tagged [disabled-input]

427 questions
18
votes
5 answers

Fieldset and disabling all child inputs - Work around for IE

I have a fieldset that has a ui-view under it. Each view had lots of fields(a field is a directive that wraps an input) under it. It looks something like this:
// this changes with lot's of…
14
votes
5 answers

How to display ui-boostrap tooltip on disabled button?

before posting here i searched and searched and i found several solutions for applying tooltips to disabled buttons, anyway none of these was using uib-tooltip from angular ui bootstrap. Here is the code of my button:
10
votes
4 answers

simple_form: disable form without adding disabled: true or readonly: true to every input

I have a large simple_form form with fields that need to be enabled or disabled depending upon where the form's partial gets loaded. My question is: how do you disable every form input quickly using simple_form helpers / wrappers? Simple Form's…
Kelsey Hannan
  • 2,857
  • 2
  • 30
  • 46
9
votes
4 answers

Angular 4 - Reactive Forms enable/disable not working

I am having trouble enabling and disabling a form controls in my application. It is probably because the form is being enabled/disabled in an asynchronous context. Here is how the code is. user.component.html
Kashif Nazar
  • 20,775
  • 5
  • 29
  • 46
9
votes
2 answers

Undisable certain elements inside disabled fieldset

Is there a way (like an attribute on an element) to 'undisable' a specific element when the parent fieldset is disabled? Preferable without any JavaScript. If not, what is a good practice to disable an entire form with specific exceptions?…
Thijs
  • 3,015
  • 4
  • 29
  • 54
7
votes
4 answers

POST values of disabled form elements

I have a form in which I need to disable an array of checkboxes and a few fields so that the user cannot change/alter their values. When I submit the form though, the POST values of the disabled elements are missing/null. How can I manage what I'm…
bikey77
  • 6,384
  • 20
  • 60
  • 86
7
votes
1 answer

Angularjs - how to get ng-message required error to display and disable input button at the same time

I want an error message to appear if the user clicks submit with no content, and I want the submit button to be disabled. I can get either one working, but not both at the same time. The code below brings up the message but allows an empty todo…
vtechmonkey
  • 123
  • 2
  • 3
  • 11
6
votes
1 answer

javafx - Bind button according to boolean value

Here, I want to disable and enable button according to the value of the boolean. boolean result=(txtItem.getText().isEmpty() && txtQty.getText().isEmpty()); btnOrder.disableProperty().bind(xxxxx); what should I enter there??
KNB
  • 97
  • 3
  • 9
5
votes
1 answer

[attr.disabled]=true not working in Reactive Form Angular 15

Currently I'm using Angular 15 and in Angular 14 for the disabled input field in reactive form I used [attr.disabled]="disableField ? true : null". This attribute after I update the Angular version 14 to 15 it's not working
Joya
  • 51
  • 3
5
votes
1 answer

disabled attribute doesn't work with required attribute on select tag

i have the following part of html template: