Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8627199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:13:01+00:00 2026-06-12T08:13:01+00:00

I have these two forms. One collects profile data (that’s all text), the other

  • 0

I have these two forms. One collects profile data (that’s all text), the other is an Image upload form. I’ve kept these two separate to make things easier. I’m using the jQuery validate plugin to validate the profile data form, and that’s doing it’s job well.

My problem is with the second one. How do I validate both, so if a user filled in his profile data but did not upload an image, the form would not submit and would display a message. Can you offer any suggestions?

The Profile data form:

<form id="profileData">
//Form fields go here
<input type="submit" name="submit" value="Submit" />
</form>

Image upload form:

<form id="profileImage" method="post" enctype="multipart/form-data">
<input type="file" name="file" id="file" /> 
<input type="submit" name="submit" value="Submit" />
</form>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T08:13:02+00:00Added an answer on June 12, 2026 at 8:13 am

    If you are validating both at the same time there is no reason that you cant make both part of the same form. If you are using two differnet forms but validation constraints are shared between both, your logic will always fail until you encapsulate both inside the same form.

    Do this instead:

    <form id="profileImage" method="post" enctype="multipart/form-data">
    <input type="submit" name="submit" value="Submit" />
    <input type="file" name="file" id="file" /> 
    <input type="submit" name="submit" value="Submit" />
    </form>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have these two methods on a class that differ only in one method
I have two select fields in a form. Every time one of these select
I have a two forms on a page. The first one has several quantity
I have two tables in APEX that are linked by their primary key. One
I have a database that has two tables, one of which contains a foreign
I have these models and I want to build forms based on the data:
I have two forms, form A and form B. These forms must differ in
I have a formset that generates two forms that have different initial values. When
I want to have two separate forms on a single create page and one
I have a page on my site with two forms, one for log in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.