Most voted "form" questions
HTML forms are used to pass data to the server. An HTML Form can contain input elements such as text fields, checkboxes, radio-Buttons, Submit buttons and more. A form can also contain select lists, textarea, fieldset, Legend and label elements (labels).
Learn more…725 questions
Sort by count of
-
1
votes2
answers2667
viewsInteractive form in HTML and PHP
I have an activity and I’m stuck on it: Create a program in PHP, where the form has choices of geometric figures (triangle, square, rectangle and trapezoid). As soon as the user selects the figure,…
-
1
votes2
answers63
viewsHow to apply two validations at the same time?
I am trying to create a simple validation of two fields, where I only check whether there is a value or not, but the second if only runs after the first one is checked. I wanted the two of them to…
-
1
votes2
answers47
viewsHow do I create a "+" button that adds new fields to my form
How do I get a "+" button to add new fields in a form? I even found a way to do it here, only I don’t know how to fix it var cont = 1; function newContest(){ var c1 = '<td…
-
1
votes1
answer226
viewsError: Notice: Undefined index: D1
I’m creating a filter for an online store, which will have these fields: And so far select * was working, but when I started deploying the filter it stopped working. Here is the form code and order…
-
1
votes1
answer355
viewsCheck equal data in SQL with onBlur
I need you to type in input, it check in the database if there is an equal record, as those user creation fields in email. I believe it’s in the onBlur of input, and use a if == in the command, the…
-
1
votes1
answer387
viewsMaterialize Javascript autocomplete
I’m using the materialize framework. According to the documentation, I can use "autocomplete" in the form tag according to the link Materialize Form. My doubt, is the following I want to create a…
-
1
votes1
answer51
viewsValidating the form field
I’m creating a simple form, in which I have to make a calculation of two fields to appear a message, until then no problem, but since there are several fields that I will have to apply the same…
-
1
votes0
answers23
viewsAdd a die to a table’s specific cell
I have a form with an hourly filter and would like to add an X in a specific cell for that table time when click the button and it add a new line with the chosen field marked with the X this and my…
-
1
votes0
answers22
viewspulling from a form to a table
I have a form where I want to write that data there and insert it into a table <form> <div class="form-group"> <label for="recipient-name" class="col-form-label">DATA DO…
-
1
votes2
answers74
viewsHow to do when click "send" change the final text Form
I want the result of the content typed in the "Text" field to automatically exit between a preset text within the "Post Text" field". Ex: when typing exemplo in the "Text" field and click submit,…
-
1
votes0
answers452
viewsSet a sidebar
I have two components, a form and a sidebar, I want to let my sidebar stay fixed on the screen and when I add data in the form and saving as I insert the sidebar do not "move". At this link (…
-
1
votes0
answers38
viewsbad request when sending number to Spring controller
I have a form that sends some data to a controller, when I send only text data works, but when I send a given type number ( and that in the controller I hope to receive as parameter a Double) gives…
-
1
votes1
answer209
viewsAnimation of loading when sending form
I put the plugin Pace Master on my page that makes a bar click at the top while the page is loading, like the one on Youtube, however, I want to make that same bar click by sending the form that…
-
1
votes1
answer400
viewsHow to calculate and display the result of an operation, taking the data from a form, and sending the answer on the same page below the form?
<!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8"> <title>Calc PHP</title> </head> <body> …
-
1
votes1
answer155
viewsHow to use a svg (or div) to click and select the corresponding checkbox
I have a form that is a recipe search filter. In this filter I have a checkbox group for the category: <form method="get" action="/busca"> <h4>Categoria</h4> <input…
-
1
votes1
answer61
views -
1
votes1
answer131
viewsSpecify last line to fill in form - VBA
I am making a form and I want the person to register only 6x (only 6 lines) the content. How to limit this amount ? As an example above, I put the rows and columns and when I fill in the form, new…
-
1
votes2
answers121
views -
1
votes3
answers367
viewsUse value returned via ajax with switch case on current page
Basically I’m trying to use value of a select returned via ajax with switch case. This switch case needs to be on the same form submission page using the select value for a specific case. My script…
-
1
votes0
answers30
viewsForm loses information passed by POST
I have a form that contains a total of 45 textarea (I will post only the first part here). When do I send this information from form one-page PHP, that only displays what has been passed by POST,…
-
1
votes0
answers59
viewsUpdate search field on a page after x query time
I’m making a query terminal using Wordpress + Woocommerce, as I will use barcode reader and will have ZERO interaction with keyboard and mouse, I need the field automatically reload a few seconds…
-
1
votes2
answers418
viewsSpam in the contact form
Hello. I am suffering from spamming in my Portfolio contact form. I have already put the fields 'name', 'email' and 'message' as mandatory and with the tests I did, it is not possible to send…
-
1
votes2
answers121
viewsHow to put two buttons inside a form where each one sends the data to different pages?
I have a form , where in the action I send the information to a PHP page , however , I need that when the user click a button send this form data to a page x and when click the other button go to…
-
1
votes0
answers72
viewsForm Autocomplete
I’m trying to make an autocomplete form, however so far it doesn’t work, I don’t know if anyone can identify the error <div class="form-group"> <label class="control-label col-sm-4"…
-
1
votes1
answer129
views -
1
votes3
answers454
viewsSelect button with jQuery and enable input from a form
Good afternoon, everyone, I am trying to implement the following solution: By clicking the button element I want the input field to be enabled. But by clicking the button nothing happens. Could…
-
1
votes1
answer39
viewsJavascript script is not running
I have the following problem... I have this code in JS: window.addEventListener('DOMContentLoaded', function(){ const regexCharactere = /<li>.[^<* ]+/; const regexEmail =…
-
1
votes1
answer259
viewsBootstrap form layout
I am trying to make a form with bootstrap in which will have a title field, a state field, a field for po content, field for tags and a boot. I happen to want to put the title field and the state…
-
1
votes2
answers134
viewsWhy is readonly valid on the form?
I just realized that the readonly in the input is giving as valid, even not containing any information. Why does this happen? How to validate the input with this attribute? Example:…
-
1
votes1
answer128
viewsHow to pass a php variable to shell_exec
How do I pass an input or select value as a variable to a shell_exec ? I have the following form: <form action="speedtest.php" method="POST" id="SpeedTest" class="form"> <p>…
-
1
votes1
answer65
viewsform does not access the route created in the Laravel
I have a ready form that I am trying to incorporate into a 5.2 Standard System <form name="formEireli" id="formEireli" action="{{ url('script') }}" target="_blank" method="post"> is in the…
-
1
votes2
answers87
viewsChange ngModel connection
I have a code and I wanted to know how to change the ngModel button-bound. Ex: <input [(ngModel)]="Pessoa1.nome"> <input [(ngModel)]="Pessoa1.idade"> <button…
-
1
votes1
answer795
viewsConditions for form using bootstrap 4
How do I create a condition in a form using Bootstrap 4 ? I have the following form: <form id="createusers" class="needs-validation" oninput='userrepassword.setCustomValidity(userrepassword.value…
-
1
votes1
answer37
viewsFormgroup.Valid starting as true IOINIC V3
I am trying to validate a form that only receives a parameter, in this form I have a search button that should only be enabled after typing at least 5 letters, but is going wrong, pq the button…
-
1
votes2
answers442
viewsTurns a field into the required form when select Yes
I have a field in my PHP form where I ask if the user has a phone at home. It is a select with YES and NO. If YES the following field must be required to be completed, if NO, the field will not be…
-
1
votes1
answer246
viewsDropdown with dynamic options in Django form
I have an expense form that has a field to select the category, but I need the options to be obtained from the database. These days this is mine forms.py: from django import forms from .models…
-
1
votes1
answer184
viewsForm in Django with more than one Model
I’m new to programming and I’m trying to make a form using more than one Model in Django. I even managed to list the Fields of Forms.py, but when asked to save it only records the data of the first…
-
1
votes1
answer343
viewsDynamic Modelform - Django
Hello! I am using Modelform from Django 2.2, and I need to leave the dynamic form. The "Number of installments" field should only appear when the Payment Method is credit. At first I tried to do…
-
1
votes0
answers34
viewsForm validation with Js
I am working on a form for some time, after validating it I found an error because I can not submit to change page,Besides that after the concert of all errors in the validation the password error…
-
1
votes1
answer86
viewsValidate form attributes and submit data with Jquery
Hello, everyone! I’m making a Javascript and Jquery API application, using localstorage to store the data. I inserted some validation attributes in the inputs (required and Pattern) and inserted the…
-
1
votes1
answer47
viewshow to disable or enable input text through a reactive radio input
I’m calling this way in html <div class="ui-g-12 ui-md-4 center-zone"> <input-radio id="controle" theme="boolean" label="tem controle?" (click)="valueSelect($event)"></input-radio>…
-
1
votes0
answers37
viewsHow to change a form dynamically?
I have two models, Empresa and Funcionario. I would like when the user selects the company the employees are dynamically set in the employee form as both Forms will be shown on the same page. So…
-
1
votes1
answer97
viewsIs there any way to reuse a window with the target form?
We know that by property target HTML form we can tell if the request window will open in the same window or in a new. When using target="_blank" a new window is opened, it makes sense even by the…
-
1
votes1
answer48
viewsUsing the value of a select with Javascript
I would like to know how to use the index of a select, for example I have select below function verificartime() { let time = window.document.getElementsByName("time") let restime =…
-
1
votes1
answer309
viewsHow to Test Forms with Cypress?
I’m having a hard time understanding how form testing works with using Cypress. I would like to test if the page form https://drbarakat.curseria.com/e-book is redirecting to the page…
-
1
votes3
answers55
viewsRecord form value and add to the database value
I have a question, how do I add the entered value of the form to the data that is recorded inside the database? The structure is more or less this. In the form action it takes me to the alterphp…
-
1
votes0
answers21
viewsHow to manage the prop "disabled" of a multi step form buttons with Formik?
The Formik provides a call prop isValid, which already solves the problem of defining when the form button should be disabled. The problem is that this apparent does not work in a multi step form,…
-
1
votes0
answers24
viewsif php based on select form
I am trying to create a form with payment mode (A view/Installments) and wanted a new field available only if the option Installments is selected, but without having to price <div…
-
1
votes1
answer175
viewsHow to create a search bar with Angular (typescript)?
I have a code that is a Kanban and I need to apply a filter to find its titles (which for now is in the component), I would like to create a search bar that works only on the front end, because I…
-
1
votes0
answers42
viewsStore form data in array without database
How to store form data in an array with the $_SESSION variable in PHP, without database? <form class="needs-validation formulario" novalidate="" action="" method="POST"> <input…