forms Questions

9

Is it possible to upload a folder with a file input in the browser? I searched and found out that this might be a browser limitation and that I might need to use a Java Applet or Flash.
Christelchristen asked 24/10, 2010 at 13:28

8

Solved

With this form: class Form(forms.Form): name = forms.CharField(required=False, initial='Hello world') If I do something like this in the view: form = Form(request.GET) if form.is_valid(): nam...
Nitrite asked 15/4, 2013 at 23:47

3

Solved

I used the code below and it has csrf too. But how can I disable its csrf? I searched and Disable CSRF token on login form did not help, as there createFormBuilder() is not used in my case below, s...
Ching asked 12/11, 2017 at 13:56

8

I'm using a Vercel Serverless function to handle a file upload to Digital Ocean Spaces (identical API to AWS S3). However, I am running into issues handling multipart/form-data in the request handl...
Nammu asked 16/6, 2020 at 14:54

9

Consider this example: var Field = React.createClass({ render: function () { // never renders new value... return ( <div> <input type="text" defaultValue={this.props.value || ''} /&g...
Unbar asked 9/6, 2015 at 9:15

6

Solved

I have a form for uploading a file in an angular 5 app, and as I have copied it exactly from a code I had written a while ago, I can swear it had worked before. Here is my HTML code: <form [form...
Kizzie asked 22/4, 2018 at 21:36

1

I have a list which I transform into a FormArray to generate a list of buttons in html. I want to filter the cars by name CarComponent.html <input #searchBox id="search-box" (input)=&q...
Equiprobable asked 9/3, 2019 at 21:36

7

I am using next js 13 route handler to get a login form data . I think I should be able to get it using formData method but it returns an empty object. My login page in app/login/page.jsx: export d...
Stasiastasis asked 31/5, 2023 at 13:42

3

Solved

I have been struggling with this weird issue for too long now. I have searched through all the so posts of the same issue and none of the solutions have helped. I have an HTML form that is using ...
Uredium asked 29/8, 2017 at 8:46

6

I am having a difficult time finding documentation on how to write a custom widget. My questions are: If I build a custom widget, can it be used equivalently for the admin interface or for norma...
Py asked 16/1, 2011 at 18:27

2

Solved

I've got a single line of code (no forms involved) here: <input type="number" min="0" max="9999999" id="inSku" name="inSku"> Before, I was using type="text", but on mobile browsers that ga...
Opiumism asked 25/9, 2013 at 22:57

5

Solved

I'm adding controls to a SwiftUI Form to assist the user enter data (and constrain the entries!). Although there is a lot to like about Forms, I've discovered that things that work nicely outside t...
Uthrop asked 19/6, 2020 at 19:56

2

Solved

I created a form with react-hook-form. It logs "fullName" and "city" correctly in the console, but not the radio buttons. With the radio buttons you get as result "null&quo...
Laoighis asked 20/5, 2021 at 19:14

6

Solved

I am getting form data in this form '------WebKitFormBoundarysw7YYuBGKjAewMhe\r\nContent-Disposition: form-data; name': '"a"\r\n\r\nb\r\n------WebKitFormBoundarysw7YYuBGKjAewMhe--\r\n I'm tryin...
Motheaten asked 4/6, 2015 at 21:45

3

I'm using yup module for validate my form. I would like access to parent for test the value. My schema : enabled: yup.boolean(), contactDetail: yup.object().shape({ phoneNumber1: yup.string().n...
Tory asked 14/5, 2019 at 8:12

3

Solved

Are there still any benefits of using a <form> element instead of let's say a <div> element in the context of a single page application? The purpose of the <form> element makes se...
Neurasthenia asked 2/7, 2015 at 1:32

8

I have an admin form with username and password fields that is being filled in by Chrome as it has a username and password remembered. I would like to prevent these fields to be automatically fille...
Brocket asked 29/8, 2014 at 13:40

13

Solved

I'm presented with a rather silly problem. I am in the process of creating my first React application and I have encountered a little issue, where I am not able to clear my input value, after I sub...
Vannavannatta asked 3/10, 2017 at 7:40

12

Solved

I have hosted a single static HTML page using GitHub Pages. I need to add a "Send Feedback" feature to my static page where a user can type in his name, email, comments and click the SUBMIT button....
Triplenerved asked 22/6, 2014 at 4:48

5

Solved

I need to create a label and text field on the fly and also include datepicker for the textfield. I need something like this: <label for="from">From </label> <input type="text" id="...
Gyrostatic asked 1/5, 2012 at 16:41

11

I'm not sure what I am doing wrong here. I want the enter key to work as well as clicking the button. <form action="" method="get" class="priceOptionForm" name=&quo...
Orme asked 10/12, 2013 at 2:9

3

Solved

I have a simple login form written in Angular 2 reactive (data-driven) template. It's working perfectly but when I refresh the page and browser fills e-mail+password (autocomplete), my form's valid...
Delp asked 10/2, 2017 at 12:15

13

Solved

How can I modify this example so it can get values from checkboxes that aren't checked? I want all checkboxes to have a value, if it hasn't been checked I want to get its value as false. <inpu...
Lapp asked 7/9, 2011 at 14:9

12

Solved

In Formik, how to make the Reset button reset the form only after confirmation? My code below still resets the form even when you click Cancel. var handleReset = (values, formProps) => { retu...
Memoirs asked 9/4, 2019 at 1:19

15

Solved

How do I limit or restrict the user to only enter a maximum of five characters in the textbox? Below is the input field as part of my form: <input type="text" id="sessionNo" name="sessionNum" ...
Eliseo asked 17/12, 2011 at 14:26

© 2022 - 2025 — McMap. All rights reserved.