Skip to content
Advertisement

Tag: forms

A problem with “No value accessor for form control with name”

I’m preparing a stackblitz for a problem that I have with child-parent communication, but along the way, I’ve been confronted with a different issue, namely, I’m getting the following error: No value accessor for form control with name: ‘endDateFC’. This happens also for startDateFC. I tried the following things from SO: I added ReactiveFormsModule and FormsModule I removed the duplicates

Javascript won’t work properly with my form

So I am currently doing a project for our class, in which I have to display something that I previously stored in a database on a separate page. I chose to display every dataset, as it is the easiest to do. With PHP I implemented a foreach loop which is supposed to show each dataset with a button “EDIT” underneath

How to append data to request form.submit()

I am trying to submit a form using POST, but I have some additional data from <p> tags that I have stored into JS object. I want to send that to server when I hit form.submit() from JavaScript. What I am trying to do is to send data with submit event Answer You could attach an onclick handler to the

Using jquery code to edit a single list item using the original input box?

I’m finding this code extremely problematic, as it will not edit only a single list item (the item that is clicked), but will instead edit all list items at once to the same input. Any advice is appreciated. Fiddle link below: https://jsfiddle.net/hufflepuff_hamlet/hy564btq/8/ Answer You need to use contenteditable global attribute https://developer.mozilla.org/fr/docs/Web/HTML/Attributs_universels/contenteditable

React Input Component is not editable

The problem: my <input> is not editable. I am using React with Next, have a simple login form with just one <input> element of type=”email”, which has been working fine until I moved it to a modal window. So, in order to not trigger the “potential duplicate to…”, let me summarize what I’ve tried so far: Verified that I have

Antd 4 Checkbox doesn’t have value after form submit

What I have I have an Ant Design 4 form with a checkbox in it: Problem The checkbox is always unchecked even if it is true inside initialValues. Also, when I submit the form the values variable always contains the value from initialValues, it doesn’t registers that I changed (checked or unchecked) the checkbox. Goal I would like the initial

Advertisement