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.
381 questions
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:
<...
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 ...
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 ...
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,...
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 ...
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?
...
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 ...
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 ...
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 ...
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;
...
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
<...
0
votes
1
answer
191
views
Range slider show/hides and reset (vanilla js)
I have a HTML5 range slider. i.e. ...
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 ...
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 ...
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 ...