Category "forms"

How to prevent Flask-WTF forms from closing modal when submitting invalid input?

I am trying to build a website where you can upload a video (this already works). But when submitting a wrong file format, the Flask-WTF form closes the modal.

Best way to pass random answers in Django Quiz App

I'm trying to build quiz app based on Cornell Notes, where the keywords will be the question with 4 answers (one correct answer and three random from other keys

JavaScript event.preventDefault() submit button data in _POST

There is something I can not seem to find documentation on: I have this form with multiple buttons. The buttons have their own actions associated with them and

Is there a way to display the form field as mm/yyyy in html form?

I'm trying to have a form field with mm/yyyy as an input. Can you help me in suggesting a way to have this date format ?

Images uploaded from Safari gets cut off

I have a form in a web app where you can upload an image, and then i send a POST call to a GAS script. Then in the GAS script i save the image in a Google drive

HTML .value checking not working properly

I have been working on a little coding project for my friends. This includes a somewhat password system that changes your username. I implemented this so that i

How can I disable Hotwire / Turbo (the Turbolinks replacement) for all forms in a Rails application?

In Rails 7, Turbolinks is replaced by Hotwire / Turbo. This patches up web links so that they become AJAX-style requests just like Turbolinks did, but also patc

2 Forms, Same Method but different task

How can I make 2 forms which has the same method? One is responsible to open editaddresss.php with hidden addresse ID, and the second form (editaddress.php)shou

Hide default value in form Ruby

I have a form and when I set a value, the value is displayed in the field, how to not display the value but keep the existing values when submitting the form: H

Redux -Having a 404 errror and state.category.push(action.payload) not a function error

I'm getting a 400 client error and saying state.category.push is not a function and the current state is pending. I will be happy if someone helps me out on thi

Form.io form builder how to emit or submit data

I am building a dynamic drag and drop form builder and i cant find a way to console log out the data of the form. here is the form component.html in which i am

WP contact form 7: get current date value to populate an input field

Using contact form 7 on my website, would like to retrieve the form submission date as an input value to use in "Jetpack CRM" for a custom field. I want to avoi

Very strange behaviour of a post request using CLI vs Browser

I am creating a very silly login system for a LAN. I was so far just testing with CLI requests before writing the frontend. Now I have both. I am logging the pa

Handle File Upload type based on button click in Controller - MVC 5

Is there any way to handle uploading file type based on button clicked in MVC 5 Controller. Currently what is happening is all buttons redirect to same page. Al

Nested FormGroupDirective in child components

There is a problem with FormGroupDirective dependency injection. I have an example of relation component to each other: <app-component-group> <child-

CSS display change AND redirect in a text input field

I am working on a form which should redirect the user to a different page based on what they input in the text field but I also want to display hidden div style

Select in form - Problem mapping through options, cannot read properties of undefined (reading 'map')

I am creating a SELECT inside a form in which I need to map through an object (I know mapping through an object instead of an array might be a problem). I am us

React MUI - form returns an variable that does not exist

Full code I have a part of the form that should be filled with data and be editable at the same time (it is the Update of the CRUD). The object is initialized w

how to reveal/unrveal password inside input in Data Driven Forms (it npm react package)?

I have a custom form imported from node_module as import FormRenderer from "@data-driven-forms/react-form-renderer/form-renderer"; this form requires schema in

How to make Dropdown with input field in django form

I am a noob to django and python 😥 I have a django form, it needs a dropdown menu with input field to enter the text which is not listed in dropdown. Is