Skip to main content

Questions tagged [form]

An HTML form is a section of a document containing normal content, markup, special elements called controls and labels on those controls.

2 votes
0 answers
49 views

React modal form implementation for name, image and weather

I'm building a modal form in React. It collects a name, image URL, and weather selection. It works, but I’d like to improve: Code structure State handling Reusability Accessibility Here’s the code: <...
Barry G's user avatar
  • 21
3 votes
1 answer
68 views

Wordpress custom registration form with additional fields

I work on plugin for custom auth pages for WordPress and I try to create a custom registration form with additional fields. it has a shortcode in Beaver Builder. Is this the correct approach, and ...
Pavel Drow's user avatar
2 votes
1 answer
80 views

react-hook-form multiple form instances with validations

My UI page use case includes interchangeable form instances. I need to render a form component, alongside a selector component which controls what form state is rendering on the form. Meaning I need ...
Refactor-Man's user avatar
1 vote
1 answer
55 views

Multi Step Record Creation Form with Validation Using Formik, Yup, and MUI

This component is a multistep popup form designed to handle job vacancy creation. It uses MUI for the UI, Formik and Yup for form handling and validation. The form is divided into 4 steps: Job Details,...
Onlit's user avatar
  • 11
1 vote
1 answer
125 views

Basic login form in React.js

I have made a very basic login/registration form in React.js. The inputted data is send to a Java Spring Boot Rest-API to create an user or to authenticate using JWT. But in this question I want to ...
O'Niel's user avatar
  • 341
3 votes
2 answers
752 views

PHP HTML form Class - so far so good?

I am writing this class to render HTML forms. It is working as expected, so far. There are many things to be done yet (including testing). Is it ok to keep this way? ...
julio's user avatar
  • 229
0 votes
1 answer
167 views

Generate HTML from input fields

I am building a small tool to generate a copy and paste HTML block, based on the user inputs. In the HTML file, I have all my inputs (select, checkbox, text inputs etc). I based myself on the JS of an ...
blogob's user avatar
  • 101
4 votes
1 answer
599 views

Setting all hidden fields based on id

I am working on a web page where there is a checkbox with a value and a hidden field. I want to ask your opinion on whether this logic is sound. My logic The checkbox has a value that matches the id ...
Jefferson's user avatar
  • 423
3 votes
0 answers
323 views

Django form for product stock, where products from the same batch must be merged

Here is the context first. I have a 'Stock' table, in which I record all the stocks with as information: the product, the ...
Tobin's user avatar
  • 131
5 votes
1 answer
121 views

Secure password generator form

With the demise of passwordsgenerator.net I wrote my own generator; Please review with an eye on correctness and maintainability; ...
konijn's user avatar
  • 34.4k
7 votes
2 answers
986 views

OOP PHP form builder with validation

Yes, another PHP form builder... I wrote this solely to demonstrate OOP principles. My questions are: Could this be written better? OOP-wise. How could I better implement error handling? Index.php <...
PRobert's user avatar
  • 73
0 votes
1 answer
191 views

Range slider show/hides and reset (vanilla js)

I have a HTML5 range slider. i.e. ...
Lieutenant Dan's user avatar
1 vote
2 answers
135 views

Having trouble deleting multiple queries (PHP, MYSQL)

I'm having trouble making WHERE IN query work, I was only able to make it work as a foreach loop. My payload looks like this: sku[]: BOOK0002 sku[]: BOOK0003 My ...
Metwesh's user avatar
  • 21
2 votes
0 answers
197 views

Accessible nested multiselect list

I'm trying to figure out the most accessible and semantic way to allow users to select one or more options from a hierarchical list. Think a taxonomy of categories and subcategories. I came across a ...
Sean's user avatar
  • 366
1 vote
1 answer
98 views

PHP function that clones HTML form structure to MySQL database structure

I built a function that should greatly simplify working with long HTML forms, that save data to MySQL using PHP. My forms usually have several hundred input elements that are added / altered / removed ...
John Doe's user avatar
  • 141

15 30 50 per page
1
2 3 4 5
26