Questions tagged [multiple-forms]

139 questions
69
votes
1 answer

Multiple Forms or Multiple Submits in a Page?

I'm creating a page with the products sold in the website. I'd like to include an "add to cart" button near each product, which are listed with markup similar to this:

Product Name 1

Extra information on the…
winck
  • 1,024
  • 2
  • 10
  • 12
12
votes
4 answers

Multiple forms of same type - Symfony 2

So I have my controller action similar to this $task1 = new Task(); $form1 = $this->createForm(new MyForm(), $task1); $task2 = new Task(); $form2 = $this->createForm(new MyForm(), $task2); And let's say my MyForm has two…
0x56794E
  • 20,883
  • 13
  • 42
  • 58
11
votes
3 answers

to submit a form among multiple forms using jquery-ajax

i have multiple forms with same class name
6
votes
2 answers

Adding two forms on the same page with react-hook-form

I am new to REACT-HOOK-FORM. I have created a profile page where I need to create two separate forms. Once for "Change Password" and another for "Profile Change". I am struggling in creating two separate forms via REACT-HOOK-FORM and utilizing that…
Ratnesh Soni
  • 85
  • 1
  • 4
6
votes
3 answers

Multiple form with same model name on single page cakephp

I have two form on a single page: login form and register form. When I submit the register form, it validates both: form fields that are in login and registeration. How can I handle it if both form have the same model (user model) Register…
Deepak Goyal
  • 1,186
  • 2
  • 13
  • 26
5
votes
3 answers

.NET MVC 3 submit buttons do different things

Can someone explain to me why this doesn't work? I've read lots of posts about multiple submit buttons on one page, but I don't understand what's going on in the background. I've tried to follow what I see others doing in those posts, but none of…
user1304444
  • 1,713
  • 3
  • 21
  • 38
4
votes
4 answers

Visual Studio C# - X Button only closes one form rather than the whole program

So my issue is pretty straight-forward, I have a program with a login feature, and if all goes well it will open up another form and hide itself. My issue is that in the new form that opens, hitting the X button to close the window will only close…
Max Box
  • 41
  • 1
  • 10
4
votes
2 answers

How to generate multiple forms dynamically in single jsp page using spring?

I have a scenario where in I'm suppose to generate same form multiple times. My application is based on spring 3.0 framework. Scenario: Basically I'm designing this application for transportation company, where there is a requirement to schedule the…
user1662376
3
votes
2 answers

WebForms submitting specific form with enter key (not clicking)

Say I have one full-page form, but within the form, there are two or more events that need to take place on submission: Login & Register Site.Master: <%@ Master Language="C#" AutoEventWireup="true" EnableViewState="true"…
tester
  • 22,441
  • 25
  • 88
  • 128
3
votes
0 answers

Redux Form multiple forms in single page

I have a lot of Fields on one page. They are related to different subjects and will be sent through different API. In some cases, I have fields with the same name(few instance of the same object - will sent through single API twice). The form can be…
3
votes
1 answer

django multiple forms with formsets

I have a model: class HospitalDoctor(models.Model): hospital = models.ForeignKey(Hospital) full_name = models.CharField(max_length=100, unique=True) expertization = models.CharField(max_length=50) nmc_no =…
gamer
  • 5,673
  • 13
  • 58
  • 91
3
votes
1 answer

Multiple AJAX Status in JSF (PrimeFaces) with multiple forms

I have multiple command buttons in my JSF ... Its a database search which has one 'Search' button and the other 'Add' button. When clicking on 'Search' Button i wanted a status to be displayed, so i added the below ajaxStatus code to my outputPanel…
Telson Alva
  • 842
  • 6
  • 22
  • 37
3
votes
1 answer

Multiple forms in one jsp

I have two form on one jsp page. The first form doesn't use the modelAttribute and the second one uses an modelAttribute. What the problem is, is that if I post the first form which I doesn't use the modelAttribute will claim an error that I haven't…
Skyverian
  • 53
  • 1
  • 1
  • 7
3
votes
0 answers

"Can't dump file" error occurs when using Paperclip attachments with Multi-step form in Rails 3

I'm having the same issue mentioned here: Multi-step form in Rails 3 with Paperclip attachments "TypeError in..." "can't dump File" However, I can't seem to wrap my head around the solution mentioned in the answer: unless @model.valid? …
Jonathan
  • 2,244
  • 1
  • 23
  • 29
2
votes
1 answer

codeigniter multiple field submit with a single form and button

i have multiple form which will be generated 4 times with the same field with a loop. and i am confused how to submit these fields in same database table with loop. my form looks like this:
kamal
  • 1,536
  • 2
  • 22
  • 32
1
2 3
9 10