Category "forms"

JQuery autosubmit

I have a form with three input elements. I want to run my validate function when the last input element is not equal to null. Any ideas please. Here's the code

A component is changing an uncontrolled input to be controlled

I am trying to do the discounted price logic Discount price should have the default value of actual price , because 0% discount means the discount price is same

React state management rendering for one object or array of objects

I'm learning React and starting with handling state in a CRUD form via the useState Hook. Something like this: const [data, setData] = useState({}); where data

How to dynamically add/remove back button from a page that's already been constructed in XamarinForms.Android?

Our team is currently implementing some UI/UX improvements to standardize how a user saves/cancels any changes made while editing data in our app; and I've got

Attempting to 'permanetly' save two user inputs into two seperate arrays, and display the array data in a listbox on a different form

Apologies I am a newbie, ill try to explain as best as I can. Im creating a game for a university assignment. My game is a maths game that asks the user maths q

Implement form parts in different classes

I have a main window with two buttons (this is a simplified description). A click on a button opens another form. Both buttons open different forms. I'd like to

How Can I Avoid This Warning ' A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from...'?

const AddItem = () => { const [user] = useAuthState(auth); const navigate = useNavigate(); const handleAddCar = (e) => { e.preventDefault()

HTML5 Form validation message doesn't show when scroll-behaviour is set to 'smooth' on html tag in Chrome

I'm having a conflict when setting the scroll-behaviour:smooth attribute on the html tag when there are form fields on the page using HTML5 Validation. You can

HTML submit form from select but comma separate values in GET

I have a simple HTML form that has a dropdown. <form method="get"> <select name="category[]" multiple class="form-control"> <option v

HTML submit form from select but comma separate values in GET

I have a simple HTML form that has a dropdown. <form method="get"> <select name="category[]" multiple class="form-control"> <option v

Django form_valid method

In my form's view I wonder what if I don't add product_form.save method in the code below and what if I add that: def form_valid(self, form): product_fo

Django form_valid method

In my form's view I wonder what if I don't add product_form.save method in the code below and what if I add that: def form_valid(self, form): product_fo

Better option for image upload (cloud) in NextJS

I'm currently developing my first real project for a client with NextJS and MongoDB and I'm having problems uploading images. I'm working with Cloudinary but it

Drupal 8 form value not changing with javascript

I have a drupal form, which contains a title, username, email, ... and I want the user to be able to insert some values and submit the data. My problem now is t

Dynamic Angular Forms on User Interaction

I have a dropdown that the user uses to switch between different Angular forms. HTML <form [formGroup]="evalForm"> <mat-form-field appearance="fill

Servlet returns "HTTP Status 404 The requested resource (/servlet) is not available"

I have an HTML form in a JSP file in my WebContent/jsps folder. I have a servlet class servlet.java in my default package in src folder. In my web.xml it is map

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 ?