Questions tagged [forms]
A form is essentially a container that can be used to hold any amount of any subset of several types of data. HTML forms are used to pass data to a server. VB and C# forms are the windows used to interact with the user.
forms
113,671
questions
0
votes
0
answers
9
views
Adding Rows in DataGridView on form without writing the syntax DataGridView1.Rows.Add(3)
The thread question is clear and specific ie. to add rows in DGV1 on Form without writing its syntax (programmatically
The reason i want is to work around with cells in DGV1 is for Numbering cells its ...
0
votes
0
answers
17
views
Ruby on Rails: File field with stimulus controller breaks when uploading a second file
I have this file field:
<div data-controller="file-upload">
<%= file_field_tag "revision_photos[photo][]",
name: &...
-1
votes
0
answers
23
views
How to Safely Sanitize Word and Excel Files in a PHP File Upload Handler? [closed]
I am creating a PHP function to handle the sanitization of files uploaded through a form. The form allows users to upload images (JPEG, PNG), PDFs, Excel, and Word documents. I am concerned about the ...
0
votes
0
answers
7
views
React "soft" re-render after a Form submission
I'm trying to re-render the view without refreshing the page after a form submission (due to the loss of states)
This is my handleSubmit function:
function handleSubmit(e:any) {
// Prevent the ...
0
votes
0
answers
27
views
Need a way for upload content on my site from a form
I'm just getting into java and php and so I looked for something online and I helped myself with AI to create something that worked, so I apologize in advance if I don't understand something and if I ...
1
vote
0
answers
12
views
Laravel Html Checkbox Array Posting Empty Values and Retaining Upon Form Submission Error
I have the following form inputs in a laravel 10 application using spatie html:
@foreach ($roles as $role)
<div class="checkbox">
<...
0
votes
0
answers
8
views
Unable to Update/Filter One Access Subform from another
I have a main form (frm_Update_Fleet_Data) with two embedded subforms (subfrm_Fleet_Data and subfrm_Ship_Details). subfrm_Fleet_Data contains the partial results of qry_Current_Fleet in a continuous ...
0
votes
0
answers
16
views
Form post to blank target on iOS not working
I'm trying to integrate a link to a webmail in my application with a form post to an external site that passes the username and password. My approach works on Android and on desktop browsers (...
0
votes
0
answers
9
views
ShadCN form updating the input field values manually
I am trying to build a form that shows a suggestion of serial numbers (data is fetched via an API and is happening correctly). I am able to get a suggestion of all serial numbers, however I dont ...
0
votes
0
answers
52
views
Changes In [FromForm] in .net core 8 where JSON value is not being supported
we have a working .net core api which takes 3 values and processes the. You can see the screenshot below, which is having placeholder for all the fields.In The message field we were able to pass both ...
0
votes
0
answers
36
views
How to use MS Access button in Main form to update list box in Subform?
I am building a Microsoft Access database form that has a couple of subforms, each in their own tab in a tab control. I also have a list box inside one of the subforms that displays all records that ...
-1
votes
0
answers
37
views
Why do different content appear under the same url in my php app?
So I've been building basic crud app using php and simple html. I noticed that when I remove element from database and redirect user to homepage everything seems fine, but when I click 'go back button'...
1
vote
0
answers
19
views
Trying to make a replica of the QBasic Gorilla game in C# Windows Forms. How to make the cube in the designer (banana) move with ballistics?
using System.Numerics;
using System.Reflection;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
namespace gorilla
{
public partial class Form1 : Form
{
private ...
0
votes
0
answers
9
views
Problem when trying to include Allauth form in django template
I have this custom form
templates/account/signup.html
{% load i18n %}
<h2> custom {% trans "Sign Up" %}</h2>
<form class="max-w-[500px]" method="post" ...
0
votes
0
answers
16
views
My form is not working. How can I fix it?
I'm working a new portfolio with astro, which is being deployed in Netlify, and I have a contact page. The thing is that once I add all the fields and presses the submit button, the text I typed ...
0
votes
1
answer
43
views
What is a good way to create a FormGroup using the DRY (Don't Repeat Yourself) principle?
I'm not convinced by the way formgroups are created in Angular.
I create forms like this:
let form = this._formBuilder.group({
nameAditionalCtrl: [adicional.nameAditional, [Validators....
-1
votes
1
answer
29
views
Not displaying the .success element after submitting the form
On submitting the form, the value of the display property is not changing to "flex" and the one of the form is not changing to "none" when the $_SESSION(['success']) is true.
I ...
0
votes
1
answer
31
views
How to use array of objects for controls in Form Group
I need to dynamically create forms in Angular. I have the following model:
values = [
{
id: 14,
group: 'basics',
field: 'food',
comment: 'Fine',
},
{
id: 15,
...
-2
votes
0
answers
45
views
form submitted but not getting email in php [duplicate]
What is the problem in coding. When I click on form submit button, it redirects to successful submission.html page, but actually I cannot receive any email from server. I am fed up and I don't have ...
-1
votes
1
answer
39
views
PHP contact form. Strange output in "From:" field
I've got an issue, that is driving me crazy.
We have a PHP contact form on our websites. Recently it's been pointed out that when an email was received it was changing the suffix of the email address, ...
-2
votes
0
answers
22
views
WP forms UI Design [closed]
after creating a enquiry form in wpforms version 1.8.93. i created two dropdowns but it changed complete ui of the website which causing dropdowns are reflecting and form display in various devices ...
-3
votes
0
answers
16
views
How to Implement Offline Data Entry and Sync for a Kindergarten Assessment Application? [closed]
I'm working on a freelance project involving the development of a kindergarten application, and I need some guidance on a few specific features. The application is designed for teachers and ...
1
vote
2
answers
31
views
How to disable form type checking
embedFormGroup = this.formBuilder.group({
withLogin: [''],
expiredTime: this.formBuilder.group({
day: ['', Validators.min(0)],
hour: ['', Validators.max(24)]
}),
embedUrl: ['']
});
...
0
votes
0
answers
46
views
Unable to send data through props in vue js
Context
I had created a product page which populate the products info from API. Now I am building the edit Product page. On edit product page, it contains 4 components which I am rendering through ...
0
votes
0
answers
13
views
How to center the form input type=file element
I am having problem figuring out how to center the input type="file" element. It has the width of 100% and the form has the width of 30% of the whole screen.
<!DOCTYPE html>
<html ...
0
votes
0
answers
15
views
Issues with Netlify form submissions in my next.js 14 project
I’m having trouble getting Netlify's form submission to work with my Next.js 14 project. I've followed Netlify's recommendations, activated form submissions within Netlify, and set up a hidden form in ...
-1
votes
2
answers
67
views
How to Use same Element over and over again
I have got an HTML Form in which there is a drop down list:
<select id="DWl1">
<option value="">Please Select</option>
<option value="C2C">C2C&...
0
votes
0
answers
21
views
Fetch returning XHR 500 for expressJS server
I have an ExpressJS server setup accepting GET and POST requests to the same URL. The POST is sent by a form, and sends data to a server, however submitting the form to send data requires a page ...
-2
votes
0
answers
29
views
How can I allow user to upload file via AJAX. Then read that file using PHP [closed]
I am trying to build a file reader on my website. The background idea is for the user to be able to select a JSON file from their PC. Choose it using an upload function on my website, then view the ...
0
votes
0
answers
26
views
Google Form to assign tasks [closed]
I've created a Google Form for submission requests. I've added the Performflow add-on to email a group to approve the task submission. The issue I'm having is that performflow allows the entire ...
-1
votes
0
answers
19
views
Optional Newsletter Signup Best Practice - Checkbox = Yes/[blank] OR Yes/No? [closed]
My site has many, many forms and a user may fill out multiple forms in a visit. Each form filled out puts the user on a specific mailing list related to their inquiry. At the end of each form the user ...
0
votes
0
answers
36
views
ACF WPML frontend form: Load form with duplicated content for editing
An ACF form in the frontend of a bilingual site (de/en) creates a data record.
On submit, a second data record in the second language is saved (WPML hook wpml_copy_post_to_language).
How can I display ...
0
votes
0
answers
17
views
Modelform using Django [closed]
I am using a form from the modelform class. But it's showing an error of B"ValueError at /list/
ModelForm has no model class specified".
enter image description here
My model form-:
from ...
0
votes
0
answers
26
views
Using Radio Buttons as Input for Boolean Model Property ASP.NET MVC
I would like to use radio buttons to indicate whether or not something is in need of repair on my form.
I have already referenced this question and used the answer offered by Ben Cull, but I would ...
-1
votes
1
answer
29
views
Form Submitting Help: Python and Selenium
I need to do web scraping on an HVAC site but I'm stuck on the form before the scraping part.
The example zipcode gets put in the input box fine, I just haven't been able to actually do the submitting!...
1
vote
1
answer
50
views
How do I make my "Please select..." unselectable in Contact Form 7?
How would I make the "Please select..." option in my drop-down menu unselectable? I am coding in this form tester for Contact Form 7 Conditional Fields. This is an example portion of my code ...
0
votes
0
answers
16
views
Listing multiple url files in an email script from a check box selection
I am trying to group multiple url files to be listed out in an email from one selection made from a checkbox on an online form. Currently the way the html is set up, you will make one selection and ...
0
votes
1
answer
51
views
TYPO3 v12 form method="get" only redirects to default action
I need to create a TYPO3 form, that passes values via get parameters to an controller action.
The form looks like this:
<f:form action="filter" name="filter-form" method="...
0
votes
1
answer
20
views
How can we set fieldproperty of setfflags to read-only a formfield using java itext 8.0.4 version
form.setfieldproperty(field, "setfflags", PdfFormField.FF_READ_ONLY, null);
How can we set fieldproperty of setfflags to read-only a formfield using Java iText 8.0.4 version, when migrating ...
0
votes
0
answers
29
views
React Hook Form Dirty State not updating properly with field array
I am using the field array in react hook form. I have noticed that if I change the value of a field array item, then remove a previous item, there becomes a mismatch / sync issue between the dirty ...
0
votes
2
answers
18
views
Why does entering decimal numbers in the input fields result in zero?
I have a form tag in HTML that has three inputes fields. Basically I want the oninput function to do a simple multiplication for me, but when I enter a decimal number, it gives me zero. For all other ...
0
votes
0
answers
20
views
Implementing Dynamic Fields from database (Angular /.net)
I'm working on a project where I need to implement dynamic fields (input text, dropdown selects, date pickers) in templates and alerts, with these fields being generated from the database. I have ...
0
votes
1
answer
46
views
How can I implement few checkboxes in a Django Form?
I was given a task to create a recipe website. A user can add a recipe. They have to choose a category (categories). One recipe can belong to one category or to several. I am inheriting my Form from ...
-1
votes
1
answer
34
views
How do I style a form select field, depending on selection with css or jquery? [duplicate]
I want to style the text color in the select field as gray (#b8b8b8), and when a selection (either Yes or NO) is made, the select field text should be styled as white (#fff).
<form>
<select&...
-1
votes
0
answers
22
views
FormRanger start button missing [closed]
I don't get the option to Start. I have also tried uninstalling and re-installing and it's not working. How can I get this fixed? This is causing significant issues. I hope this gets fixed quickly. It ...
-1
votes
0
answers
28
views
How do I pass the id of a record to the edit form in a CRUD app [closed]
I have this code:
<ul>
<li>
<div class="id">1</div>
<div class="name">John Doe</div>
<button class="edit&...
0
votes
1
answer
47
views
Extjs TagField dropdown items persistent after selection
I'm currenly trying edit TagField behaviour so that the dropdown items stay in dropdown even after you select one or multiple. Use case is something like revenue calculator (every user can determinate ...
0
votes
1
answer
44
views
How to validate one field of a Zod schema apart from the whole schema
I have a form with multiple inputs.
One is 'hours' and one is 'price'.
I am using NextJS and server side actions.
What I do now is when someone clicks submit
Validate the whole form with Zod ...
0
votes
1
answer
18
views
How to Redirect Based on Form Input and Record Lead in Unbounce
I'm working on an Unbounce landing page and need some help with a form submission script. The goal is to redirect the user to a specific URL based on their input for the company_size field and ensure ...
2
votes
2
answers
49
views
How to add a ForeignKey field to be saved in ModelForm Django?
While creating my website, I face the following problem: a user can add an article, and so the article model has a ForeignKey field - author.
I created a form for adding it, inheriting from ModelForm, ...