Is it possible to form submit display:none values in django formsHow do you disable browser Autocomplete on web form field / input tag?What are valid values for the id attribute in HTML?What is the difference between visibility:hidden and display:none?Which “href” value should I use for JavaScript links, “#” or “javascript:void(0)”?Does Django scale?Prevent users from submitting a form by hitting EnterHow to prevent buttons from submitting formsWhat does enctype='multipart/form-data' mean?Is it possible to apply CSS to half of a character?Cannot display HTML string

Heuristic argument for the Riemann Hypothesis

Remove ads in Viber for PC

How to disambiguate between various meditation practices?

In mathematics is there a substitution that is "different" from Vieta's substitution to solve the cubic equation?

How does Harry wear the invisibility cloak?

Can my UK debt be collected because I have to return to US?

How do you manage to study and have a balance in your life at the same time?

How to run a command 1 out of N times in Bash

When making yogurt, why doesn't bad bacteria grow as well?

My boss says "This will help us better view the utilization of your services." Does this mean my job is ending in this organisation?

What is the maximal acceptable delay between pilot's input and flight control surface actuation?

Can an intercepting fighter jet force a small propeller aircraft down without completely destroying it?

Function of the separated, individual solar cells on Telstar 1 and 2? Why were they "special"?

Why do we need explainable AI?

How to annoymously report the Establishment Clause being broken?

Can a Beholder face its Antimagic Cone behind itself?

Map a function that takes arguments in different levels of a list

Are manifolds admitting a circle foliation covered by manifolds with a (non-trivial) circle action?

Why do modes sound so different, although they are basically the same as a mode of another scale?

Were the women of Travancore, India, taxed for covering their breasts by breast size?

Solve this icositetragram

Do we know the problems the University of Manchester's Transistor Computer was intended to solve?

Does immunity to non magical damage negate sneak attack damage?

What percentage of the mass/energy of the universe is in the form of electromagnetic waves?



Is it possible to form submit display:none values in django forms


How do you disable browser Autocomplete on web form field / input tag?What are valid values for the id attribute in HTML?What is the difference between visibility:hidden and display:none?Which “href” value should I use for JavaScript links, “#” or “javascript:void(0)”?Does Django scale?Prevent users from submitting a form by hitting EnterHow to prevent buttons from submitting formsWhat does enctype='multipart/form-data' mean?Is it possible to apply CSS to half of a character?Cannot display HTML string






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








-1















I am trying to form submit in Django with multiple details so I have decided to separate have the next button and the first set of details will be hidden and the next set will be displayed and the form submission will happen in the last set of details. I have finished the code and placed the tag on the beginning and the closing tag at the bottom. But the form was not submitting. It was not showing any error. When I click the button nothing happened



<form method="POST">% csrf_token %
<div id="personal_info">
<div class="container">

<div class="form-row">
<div class="form-group col-md-4">
<label for="firstname">First Name</label>
form.first_name
</div>
<div class="form-group col-md-4">
<label for="middlename">Middle Name</label>
form.middle_name
</div>
<div class="form-group col-md-4">
<label for="lastname">Last Name</label>
form.last_name
</div>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="emailadd">Email Address</label>
form.email_address
</div>
<div class="form-group col-md-5">
<label for="contact">Contact No</label>
form.contact_no
</div>
<div class="form-group col-md-1">
<label for="contact">Age</label>
<input type="number" class="form-control" id="contact">
</div>
</div>

<div class="form-row">
<div class="form-group col-md-4">
<label for="position">Position</label>
form.position_applied_for
</div>
<div class="form-group col-md-4">
<label for="gender">Gender</label>
form.sex
</div>
</div>

<div class="form-row">
<div class="form-group col-md-6">
<label for="birthplace">Place of birth</label>
form.place_of_birth
</div>
<div class="form-group col-md-6">
<label for="birthdate">Date of birth</label>
form.date_of_birth
</div>
</div>

<div class="form-row">
<div class="form-group col-md-6">
<label for="city_address">City Address</label>
form.city_add
</div>
<div class="form-group col-md-6">
<label for="city_zip">City Zip</label>
form.city_zip
</div>
</div>

<div class="form-row">
<div class="form-group col-md-4">
<label for="citizenship">Citizenship</label>
form.citizenship
</div>
<div class="form-group col-md-4">
<label for="religion">Religion</label>
form.religion
</div>
<div class="form-group col-md-4">
<label for="source_type">Where did you find Halcyon?</label>
form.source_type
</div>
</div>

<div class="form-row">
<div class="form-group col-md-4">
<label for="physical_deformities">Physical Deformities</label>
form.physical_deformities
</div>
<div class="form-group col-md-4">
<label for="blood_type">Blood Type</label>
form.blood_type
</div>
<div class="form-group col-md-4">
<label for="marital_status">Marrital Status</label>
form.marital_status
</div>
</div>

<div class="form-row">
<div class="form-group col-md-3">
<label for="sss">SSS No.</label>
form.sss
</div>
<div class="form-group col-md-3">
<label for="tin">TIN No.</label>
form.tin
</div>
<div class="form-group col-md-3">
<label for="hdmf">HDMF No.</label>
form.hdmf
</div>
<div class="form-group col-md-3">
<label for="phil">Phil health No.</label>
form.phil
</div>
</div>

<div class="form-row">
<div class="form-group col-md-3">
<label for="person_emerg_name">Person to notify in case of emergency</label>
form.person_emerg_name
</div>
<div class="form-group col-md-3">
<label for="person_emerg_add">Address of the person to notify in case of emergency</label>
form.person_emerg_add
</div>
<div class="form-group col-md-3">
<label for="person_emerg_zip">Zip Code</label>
form.person_emerg_zip
</div>
<div class="form-group col-md-3">
<label for="person_emerg_contact_no">Contact No.</label>
form.person_emerg_contact_no
</div>
</div>

<div class="form-row">
<div class="form-group col-md-3">
<label for="tax_status">Tax Status</label>
form.tax_status
</div>
</div>
</div>
<button id="next_family">Next</button>
<input type="submit" value="submit">
</form>
</div>

<div id="family_info">
<div class="container">
<div class="form-row">
<div class="form-group col-md-2">
<label for="firstname">Spouse Last Name</label>
form.spouse_last_name
</div>
<div class="form-group col-md-2">
<label for="middlename">Spouse First Name</label>
form.spouse_first_name
</div>
<div class="form-group col-md-2">
<label for="lastname">Spouse Middle Name</label>
form.spouse_middle_name
</div>
<div class="form-group col-md-2">
<label for="emailadd">Occupation</label>
form.spouse_occupation
</div>
<div class="form-group col-md-1">
<label for="contact">Age</label>
form.spouse_age
</div>
<div class="form-group col-md-2">
<label for="contact">Spouse Tel No:</label>
form.spouse_telno
</div>
</div>

<div class="form-row">
<div class="form-group col-md-2">
<label for="firstname">Father Last Name</label>
form.father_last_name
</div>
<div class="form-group col-md-2">
<label for="middlename">Father First Name</label>
form.father_first_name
</div>
<div class="form-group col-md-2">
<label for="lastname">Father Middle Name</label>
form.father_middle_name
</div>
<div class="form-group col-md-2">
<label for="emailadd">Occupation</label>
form.father_occupation
</div>
<div class="form-group col-md-1">
<label for="contact">Age</label>
form.father_age
</div>
<div class="form-group col-md-2">
<label for="contact">Father Tel No.</label>
form.father_telno
</div>
</div>

<div class="form-row">
<div class="form-group col-md-2">
<label for="firstname">Mother Last Name</label>
form.mother_last_name
</div>
<div class="form-group col-md-2">
<label for="middlename">Mother First Name</label>
form.mother_first_name
</div>
<div class="form-group col-md-2">
<label for="lastname">Mother Middle Name</label>
form.mother_middle_name
</div>
<div class="form-group col-md-2">
<label for="emailadd">Occupation</label>
form.mother_occupation
</div>
<div class="form-group col-md-1">
<label for="contact">Age</label>
form.mother_age
</div>
<div class="form-group col-md-2">
<label for="contact">Mother Tel No.</label>
form.mother_telno
</div>
</div>
<div class="form-row">
<div class="form-group col-md-2">
<label for="firstname">Sibling Last Name</label>
form.siblings_last_name
</div>
<div class="form-group col-md-2">
<label for="middlename">Sibling First Name</label>
form.siblings_first_name
</div>
<div class="form-group col-md-2">
<label for="lastname">Sibling Middle Name</label>
form.siblings_middle_name
</div>
<div class="form-group col-md-2">
<label for="emailadd">Occupation</label>
form.siblings_occupation
</div>
<div class="form-group col-md-1">
<label for="contact">Age</label>
form.siblings_age
</div>
<div class="form-group col-md-2">
<label for="contact">Sibling Tel No.</label>
form.siblings_telno
</div>
</div>
<div class="form-row">
<div class="form-group col-md-2">
<label for="firstname">Sibling Last Name</label>
form.siblings2_last_name
</div>
<div class="form-group col-md-2">
<label for="middlename">Sibling First Name</label>
form.siblings2_first_name
</div>
<div class="form-group col-md-2">
<label for="lastname">Sibling Middle Name</label>
form.siblings2_middle_name
</div>
<div class="form-group col-md-2">
<label for="emailadd">Occupation</label>
form.siblings2_occupation
</div>
<div class="form-group col-md-1">
<label for="contact">Age</label>
form.siblings2_age
</div>
<div class="form-group col-md-2">
<label for="contact">Sibling Tel No.</label>
form.siblings2_telno
</div>
</div>
<div class="form-row">
<div class="form-group col-md-2">
<label for="firstname">Sibling Last Name</label>
form.siblings3_last_name
</div>
<div class="form-group col-md-2">
<label for="middlename">Sibling First Name</label>
form.siblings3_first_name
</div>
<div class="form-group col-md-2">
<label for="lastname">Sibling Middle Name</label>
form.siblings3_middle_name
</div>
<div class="form-group col-md-2">
<label for="emailadd">Occupation</label>
form.siblings3_occupation
</div>
<div class="form-group col-md-1">
<label for="contact">Age</label>
form.siblings3_age
</div>
<div class="form-group col-md-2">
<label for="contact">Sibling Tel No.</label>
form.siblings3_telno
</div>
</div>
</div>
<button id="previous_personal">Previous</button>
<button id="next_educational">Next</button>
</div>

<input type="submit" value="submit">
</div>









share|improve this question
































    -1















    I am trying to form submit in Django with multiple details so I have decided to separate have the next button and the first set of details will be hidden and the next set will be displayed and the form submission will happen in the last set of details. I have finished the code and placed the tag on the beginning and the closing tag at the bottom. But the form was not submitting. It was not showing any error. When I click the button nothing happened



    <form method="POST">% csrf_token %
    <div id="personal_info">
    <div class="container">

    <div class="form-row">
    <div class="form-group col-md-4">
    <label for="firstname">First Name</label>
    form.first_name
    </div>
    <div class="form-group col-md-4">
    <label for="middlename">Middle Name</label>
    form.middle_name
    </div>
    <div class="form-group col-md-4">
    <label for="lastname">Last Name</label>
    form.last_name
    </div>
    </div>
    <div class="form-row">
    <div class="form-group col-md-6">
    <label for="emailadd">Email Address</label>
    form.email_address
    </div>
    <div class="form-group col-md-5">
    <label for="contact">Contact No</label>
    form.contact_no
    </div>
    <div class="form-group col-md-1">
    <label for="contact">Age</label>
    <input type="number" class="form-control" id="contact">
    </div>
    </div>

    <div class="form-row">
    <div class="form-group col-md-4">
    <label for="position">Position</label>
    form.position_applied_for
    </div>
    <div class="form-group col-md-4">
    <label for="gender">Gender</label>
    form.sex
    </div>
    </div>

    <div class="form-row">
    <div class="form-group col-md-6">
    <label for="birthplace">Place of birth</label>
    form.place_of_birth
    </div>
    <div class="form-group col-md-6">
    <label for="birthdate">Date of birth</label>
    form.date_of_birth
    </div>
    </div>

    <div class="form-row">
    <div class="form-group col-md-6">
    <label for="city_address">City Address</label>
    form.city_add
    </div>
    <div class="form-group col-md-6">
    <label for="city_zip">City Zip</label>
    form.city_zip
    </div>
    </div>

    <div class="form-row">
    <div class="form-group col-md-4">
    <label for="citizenship">Citizenship</label>
    form.citizenship
    </div>
    <div class="form-group col-md-4">
    <label for="religion">Religion</label>
    form.religion
    </div>
    <div class="form-group col-md-4">
    <label for="source_type">Where did you find Halcyon?</label>
    form.source_type
    </div>
    </div>

    <div class="form-row">
    <div class="form-group col-md-4">
    <label for="physical_deformities">Physical Deformities</label>
    form.physical_deformities
    </div>
    <div class="form-group col-md-4">
    <label for="blood_type">Blood Type</label>
    form.blood_type
    </div>
    <div class="form-group col-md-4">
    <label for="marital_status">Marrital Status</label>
    form.marital_status
    </div>
    </div>

    <div class="form-row">
    <div class="form-group col-md-3">
    <label for="sss">SSS No.</label>
    form.sss
    </div>
    <div class="form-group col-md-3">
    <label for="tin">TIN No.</label>
    form.tin
    </div>
    <div class="form-group col-md-3">
    <label for="hdmf">HDMF No.</label>
    form.hdmf
    </div>
    <div class="form-group col-md-3">
    <label for="phil">Phil health No.</label>
    form.phil
    </div>
    </div>

    <div class="form-row">
    <div class="form-group col-md-3">
    <label for="person_emerg_name">Person to notify in case of emergency</label>
    form.person_emerg_name
    </div>
    <div class="form-group col-md-3">
    <label for="person_emerg_add">Address of the person to notify in case of emergency</label>
    form.person_emerg_add
    </div>
    <div class="form-group col-md-3">
    <label for="person_emerg_zip">Zip Code</label>
    form.person_emerg_zip
    </div>
    <div class="form-group col-md-3">
    <label for="person_emerg_contact_no">Contact No.</label>
    form.person_emerg_contact_no
    </div>
    </div>

    <div class="form-row">
    <div class="form-group col-md-3">
    <label for="tax_status">Tax Status</label>
    form.tax_status
    </div>
    </div>
    </div>
    <button id="next_family">Next</button>
    <input type="submit" value="submit">
    </form>
    </div>

    <div id="family_info">
    <div class="container">
    <div class="form-row">
    <div class="form-group col-md-2">
    <label for="firstname">Spouse Last Name</label>
    form.spouse_last_name
    </div>
    <div class="form-group col-md-2">
    <label for="middlename">Spouse First Name</label>
    form.spouse_first_name
    </div>
    <div class="form-group col-md-2">
    <label for="lastname">Spouse Middle Name</label>
    form.spouse_middle_name
    </div>
    <div class="form-group col-md-2">
    <label for="emailadd">Occupation</label>
    form.spouse_occupation
    </div>
    <div class="form-group col-md-1">
    <label for="contact">Age</label>
    form.spouse_age
    </div>
    <div class="form-group col-md-2">
    <label for="contact">Spouse Tel No:</label>
    form.spouse_telno
    </div>
    </div>

    <div class="form-row">
    <div class="form-group col-md-2">
    <label for="firstname">Father Last Name</label>
    form.father_last_name
    </div>
    <div class="form-group col-md-2">
    <label for="middlename">Father First Name</label>
    form.father_first_name
    </div>
    <div class="form-group col-md-2">
    <label for="lastname">Father Middle Name</label>
    form.father_middle_name
    </div>
    <div class="form-group col-md-2">
    <label for="emailadd">Occupation</label>
    form.father_occupation
    </div>
    <div class="form-group col-md-1">
    <label for="contact">Age</label>
    form.father_age
    </div>
    <div class="form-group col-md-2">
    <label for="contact">Father Tel No.</label>
    form.father_telno
    </div>
    </div>

    <div class="form-row">
    <div class="form-group col-md-2">
    <label for="firstname">Mother Last Name</label>
    form.mother_last_name
    </div>
    <div class="form-group col-md-2">
    <label for="middlename">Mother First Name</label>
    form.mother_first_name
    </div>
    <div class="form-group col-md-2">
    <label for="lastname">Mother Middle Name</label>
    form.mother_middle_name
    </div>
    <div class="form-group col-md-2">
    <label for="emailadd">Occupation</label>
    form.mother_occupation
    </div>
    <div class="form-group col-md-1">
    <label for="contact">Age</label>
    form.mother_age
    </div>
    <div class="form-group col-md-2">
    <label for="contact">Mother Tel No.</label>
    form.mother_telno
    </div>
    </div>
    <div class="form-row">
    <div class="form-group col-md-2">
    <label for="firstname">Sibling Last Name</label>
    form.siblings_last_name
    </div>
    <div class="form-group col-md-2">
    <label for="middlename">Sibling First Name</label>
    form.siblings_first_name
    </div>
    <div class="form-group col-md-2">
    <label for="lastname">Sibling Middle Name</label>
    form.siblings_middle_name
    </div>
    <div class="form-group col-md-2">
    <label for="emailadd">Occupation</label>
    form.siblings_occupation
    </div>
    <div class="form-group col-md-1">
    <label for="contact">Age</label>
    form.siblings_age
    </div>
    <div class="form-group col-md-2">
    <label for="contact">Sibling Tel No.</label>
    form.siblings_telno
    </div>
    </div>
    <div class="form-row">
    <div class="form-group col-md-2">
    <label for="firstname">Sibling Last Name</label>
    form.siblings2_last_name
    </div>
    <div class="form-group col-md-2">
    <label for="middlename">Sibling First Name</label>
    form.siblings2_first_name
    </div>
    <div class="form-group col-md-2">
    <label for="lastname">Sibling Middle Name</label>
    form.siblings2_middle_name
    </div>
    <div class="form-group col-md-2">
    <label for="emailadd">Occupation</label>
    form.siblings2_occupation
    </div>
    <div class="form-group col-md-1">
    <label for="contact">Age</label>
    form.siblings2_age
    </div>
    <div class="form-group col-md-2">
    <label for="contact">Sibling Tel No.</label>
    form.siblings2_telno
    </div>
    </div>
    <div class="form-row">
    <div class="form-group col-md-2">
    <label for="firstname">Sibling Last Name</label>
    form.siblings3_last_name
    </div>
    <div class="form-group col-md-2">
    <label for="middlename">Sibling First Name</label>
    form.siblings3_first_name
    </div>
    <div class="form-group col-md-2">
    <label for="lastname">Sibling Middle Name</label>
    form.siblings3_middle_name
    </div>
    <div class="form-group col-md-2">
    <label for="emailadd">Occupation</label>
    form.siblings3_occupation
    </div>
    <div class="form-group col-md-1">
    <label for="contact">Age</label>
    form.siblings3_age
    </div>
    <div class="form-group col-md-2">
    <label for="contact">Sibling Tel No.</label>
    form.siblings3_telno
    </div>
    </div>
    </div>
    <button id="previous_personal">Previous</button>
    <button id="next_educational">Next</button>
    </div>

    <input type="submit" value="submit">
    </div>









    share|improve this question




























      -1












      -1








      -1








      I am trying to form submit in Django with multiple details so I have decided to separate have the next button and the first set of details will be hidden and the next set will be displayed and the form submission will happen in the last set of details. I have finished the code and placed the tag on the beginning and the closing tag at the bottom. But the form was not submitting. It was not showing any error. When I click the button nothing happened



      <form method="POST">% csrf_token %
      <div id="personal_info">
      <div class="container">

      <div class="form-row">
      <div class="form-group col-md-4">
      <label for="firstname">First Name</label>
      form.first_name
      </div>
      <div class="form-group col-md-4">
      <label for="middlename">Middle Name</label>
      form.middle_name
      </div>
      <div class="form-group col-md-4">
      <label for="lastname">Last Name</label>
      form.last_name
      </div>
      </div>
      <div class="form-row">
      <div class="form-group col-md-6">
      <label for="emailadd">Email Address</label>
      form.email_address
      </div>
      <div class="form-group col-md-5">
      <label for="contact">Contact No</label>
      form.contact_no
      </div>
      <div class="form-group col-md-1">
      <label for="contact">Age</label>
      <input type="number" class="form-control" id="contact">
      </div>
      </div>

      <div class="form-row">
      <div class="form-group col-md-4">
      <label for="position">Position</label>
      form.position_applied_for
      </div>
      <div class="form-group col-md-4">
      <label for="gender">Gender</label>
      form.sex
      </div>
      </div>

      <div class="form-row">
      <div class="form-group col-md-6">
      <label for="birthplace">Place of birth</label>
      form.place_of_birth
      </div>
      <div class="form-group col-md-6">
      <label for="birthdate">Date of birth</label>
      form.date_of_birth
      </div>
      </div>

      <div class="form-row">
      <div class="form-group col-md-6">
      <label for="city_address">City Address</label>
      form.city_add
      </div>
      <div class="form-group col-md-6">
      <label for="city_zip">City Zip</label>
      form.city_zip
      </div>
      </div>

      <div class="form-row">
      <div class="form-group col-md-4">
      <label for="citizenship">Citizenship</label>
      form.citizenship
      </div>
      <div class="form-group col-md-4">
      <label for="religion">Religion</label>
      form.religion
      </div>
      <div class="form-group col-md-4">
      <label for="source_type">Where did you find Halcyon?</label>
      form.source_type
      </div>
      </div>

      <div class="form-row">
      <div class="form-group col-md-4">
      <label for="physical_deformities">Physical Deformities</label>
      form.physical_deformities
      </div>
      <div class="form-group col-md-4">
      <label for="blood_type">Blood Type</label>
      form.blood_type
      </div>
      <div class="form-group col-md-4">
      <label for="marital_status">Marrital Status</label>
      form.marital_status
      </div>
      </div>

      <div class="form-row">
      <div class="form-group col-md-3">
      <label for="sss">SSS No.</label>
      form.sss
      </div>
      <div class="form-group col-md-3">
      <label for="tin">TIN No.</label>
      form.tin
      </div>
      <div class="form-group col-md-3">
      <label for="hdmf">HDMF No.</label>
      form.hdmf
      </div>
      <div class="form-group col-md-3">
      <label for="phil">Phil health No.</label>
      form.phil
      </div>
      </div>

      <div class="form-row">
      <div class="form-group col-md-3">
      <label for="person_emerg_name">Person to notify in case of emergency</label>
      form.person_emerg_name
      </div>
      <div class="form-group col-md-3">
      <label for="person_emerg_add">Address of the person to notify in case of emergency</label>
      form.person_emerg_add
      </div>
      <div class="form-group col-md-3">
      <label for="person_emerg_zip">Zip Code</label>
      form.person_emerg_zip
      </div>
      <div class="form-group col-md-3">
      <label for="person_emerg_contact_no">Contact No.</label>
      form.person_emerg_contact_no
      </div>
      </div>

      <div class="form-row">
      <div class="form-group col-md-3">
      <label for="tax_status">Tax Status</label>
      form.tax_status
      </div>
      </div>
      </div>
      <button id="next_family">Next</button>
      <input type="submit" value="submit">
      </form>
      </div>

      <div id="family_info">
      <div class="container">
      <div class="form-row">
      <div class="form-group col-md-2">
      <label for="firstname">Spouse Last Name</label>
      form.spouse_last_name
      </div>
      <div class="form-group col-md-2">
      <label for="middlename">Spouse First Name</label>
      form.spouse_first_name
      </div>
      <div class="form-group col-md-2">
      <label for="lastname">Spouse Middle Name</label>
      form.spouse_middle_name
      </div>
      <div class="form-group col-md-2">
      <label for="emailadd">Occupation</label>
      form.spouse_occupation
      </div>
      <div class="form-group col-md-1">
      <label for="contact">Age</label>
      form.spouse_age
      </div>
      <div class="form-group col-md-2">
      <label for="contact">Spouse Tel No:</label>
      form.spouse_telno
      </div>
      </div>

      <div class="form-row">
      <div class="form-group col-md-2">
      <label for="firstname">Father Last Name</label>
      form.father_last_name
      </div>
      <div class="form-group col-md-2">
      <label for="middlename">Father First Name</label>
      form.father_first_name
      </div>
      <div class="form-group col-md-2">
      <label for="lastname">Father Middle Name</label>
      form.father_middle_name
      </div>
      <div class="form-group col-md-2">
      <label for="emailadd">Occupation</label>
      form.father_occupation
      </div>
      <div class="form-group col-md-1">
      <label for="contact">Age</label>
      form.father_age
      </div>
      <div class="form-group col-md-2">
      <label for="contact">Father Tel No.</label>
      form.father_telno
      </div>
      </div>

      <div class="form-row">
      <div class="form-group col-md-2">
      <label for="firstname">Mother Last Name</label>
      form.mother_last_name
      </div>
      <div class="form-group col-md-2">
      <label for="middlename">Mother First Name</label>
      form.mother_first_name
      </div>
      <div class="form-group col-md-2">
      <label for="lastname">Mother Middle Name</label>
      form.mother_middle_name
      </div>
      <div class="form-group col-md-2">
      <label for="emailadd">Occupation</label>
      form.mother_occupation
      </div>
      <div class="form-group col-md-1">
      <label for="contact">Age</label>
      form.mother_age
      </div>
      <div class="form-group col-md-2">
      <label for="contact">Mother Tel No.</label>
      form.mother_telno
      </div>
      </div>
      <div class="form-row">
      <div class="form-group col-md-2">
      <label for="firstname">Sibling Last Name</label>
      form.siblings_last_name
      </div>
      <div class="form-group col-md-2">
      <label for="middlename">Sibling First Name</label>
      form.siblings_first_name
      </div>
      <div class="form-group col-md-2">
      <label for="lastname">Sibling Middle Name</label>
      form.siblings_middle_name
      </div>
      <div class="form-group col-md-2">
      <label for="emailadd">Occupation</label>
      form.siblings_occupation
      </div>
      <div class="form-group col-md-1">
      <label for="contact">Age</label>
      form.siblings_age
      </div>
      <div class="form-group col-md-2">
      <label for="contact">Sibling Tel No.</label>
      form.siblings_telno
      </div>
      </div>
      <div class="form-row">
      <div class="form-group col-md-2">
      <label for="firstname">Sibling Last Name</label>
      form.siblings2_last_name
      </div>
      <div class="form-group col-md-2">
      <label for="middlename">Sibling First Name</label>
      form.siblings2_first_name
      </div>
      <div class="form-group col-md-2">
      <label for="lastname">Sibling Middle Name</label>
      form.siblings2_middle_name
      </div>
      <div class="form-group col-md-2">
      <label for="emailadd">Occupation</label>
      form.siblings2_occupation
      </div>
      <div class="form-group col-md-1">
      <label for="contact">Age</label>
      form.siblings2_age
      </div>
      <div class="form-group col-md-2">
      <label for="contact">Sibling Tel No.</label>
      form.siblings2_telno
      </div>
      </div>
      <div class="form-row">
      <div class="form-group col-md-2">
      <label for="firstname">Sibling Last Name</label>
      form.siblings3_last_name
      </div>
      <div class="form-group col-md-2">
      <label for="middlename">Sibling First Name</label>
      form.siblings3_first_name
      </div>
      <div class="form-group col-md-2">
      <label for="lastname">Sibling Middle Name</label>
      form.siblings3_middle_name
      </div>
      <div class="form-group col-md-2">
      <label for="emailadd">Occupation</label>
      form.siblings3_occupation
      </div>
      <div class="form-group col-md-1">
      <label for="contact">Age</label>
      form.siblings3_age
      </div>
      <div class="form-group col-md-2">
      <label for="contact">Sibling Tel No.</label>
      form.siblings3_telno
      </div>
      </div>
      </div>
      <button id="previous_personal">Previous</button>
      <button id="next_educational">Next</button>
      </div>

      <input type="submit" value="submit">
      </div>









      share|improve this question
















      I am trying to form submit in Django with multiple details so I have decided to separate have the next button and the first set of details will be hidden and the next set will be displayed and the form submission will happen in the last set of details. I have finished the code and placed the tag on the beginning and the closing tag at the bottom. But the form was not submitting. It was not showing any error. When I click the button nothing happened



      <form method="POST">% csrf_token %
      <div id="personal_info">
      <div class="container">

      <div class="form-row">
      <div class="form-group col-md-4">
      <label for="firstname">First Name</label>
      form.first_name
      </div>
      <div class="form-group col-md-4">
      <label for="middlename">Middle Name</label>
      form.middle_name
      </div>
      <div class="form-group col-md-4">
      <label for="lastname">Last Name</label>
      form.last_name
      </div>
      </div>
      <div class="form-row">
      <div class="form-group col-md-6">
      <label for="emailadd">Email Address</label>
      form.email_address
      </div>
      <div class="form-group col-md-5">
      <label for="contact">Contact No</label>
      form.contact_no
      </div>
      <div class="form-group col-md-1">
      <label for="contact">Age</label>
      <input type="number" class="form-control" id="contact">
      </div>
      </div>

      <div class="form-row">
      <div class="form-group col-md-4">
      <label for="position">Position</label>
      form.position_applied_for
      </div>
      <div class="form-group col-md-4">
      <label for="gender">Gender</label>
      form.sex
      </div>
      </div>

      <div class="form-row">
      <div class="form-group col-md-6">
      <label for="birthplace">Place of birth</label>
      form.place_of_birth
      </div>
      <div class="form-group col-md-6">
      <label for="birthdate">Date of birth</label>
      form.date_of_birth
      </div>
      </div>

      <div class="form-row">
      <div class="form-group col-md-6">
      <label for="city_address">City Address</label>
      form.city_add
      </div>
      <div class="form-group col-md-6">
      <label for="city_zip">City Zip</label>
      form.city_zip
      </div>
      </div>

      <div class="form-row">
      <div class="form-group col-md-4">
      <label for="citizenship">Citizenship</label>
      form.citizenship
      </div>
      <div class="form-group col-md-4">
      <label for="religion">Religion</label>
      form.religion
      </div>
      <div class="form-group col-md-4">
      <label for="source_type">Where did you find Halcyon?</label>
      form.source_type
      </div>
      </div>

      <div class="form-row">
      <div class="form-group col-md-4">
      <label for="physical_deformities">Physical Deformities</label>
      form.physical_deformities
      </div>
      <div class="form-group col-md-4">
      <label for="blood_type">Blood Type</label>
      form.blood_type
      </div>
      <div class="form-group col-md-4">
      <label for="marital_status">Marrital Status</label>
      form.marital_status
      </div>
      </div>

      <div class="form-row">
      <div class="form-group col-md-3">
      <label for="sss">SSS No.</label>
      form.sss
      </div>
      <div class="form-group col-md-3">
      <label for="tin">TIN No.</label>
      form.tin
      </div>
      <div class="form-group col-md-3">
      <label for="hdmf">HDMF No.</label>
      form.hdmf
      </div>
      <div class="form-group col-md-3">
      <label for="phil">Phil health No.</label>
      form.phil
      </div>
      </div>

      <div class="form-row">
      <div class="form-group col-md-3">
      <label for="person_emerg_name">Person to notify in case of emergency</label>
      form.person_emerg_name
      </div>
      <div class="form-group col-md-3">
      <label for="person_emerg_add">Address of the person to notify in case of emergency</label>
      form.person_emerg_add
      </div>
      <div class="form-group col-md-3">
      <label for="person_emerg_zip">Zip Code</label>
      form.person_emerg_zip
      </div>
      <div class="form-group col-md-3">
      <label for="person_emerg_contact_no">Contact No.</label>
      form.person_emerg_contact_no
      </div>
      </div>

      <div class="form-row">
      <div class="form-group col-md-3">
      <label for="tax_status">Tax Status</label>
      form.tax_status
      </div>
      </div>
      </div>
      <button id="next_family">Next</button>
      <input type="submit" value="submit">
      </form>
      </div>

      <div id="family_info">
      <div class="container">
      <div class="form-row">
      <div class="form-group col-md-2">
      <label for="firstname">Spouse Last Name</label>
      form.spouse_last_name
      </div>
      <div class="form-group col-md-2">
      <label for="middlename">Spouse First Name</label>
      form.spouse_first_name
      </div>
      <div class="form-group col-md-2">
      <label for="lastname">Spouse Middle Name</label>
      form.spouse_middle_name
      </div>
      <div class="form-group col-md-2">
      <label for="emailadd">Occupation</label>
      form.spouse_occupation
      </div>
      <div class="form-group col-md-1">
      <label for="contact">Age</label>
      form.spouse_age
      </div>
      <div class="form-group col-md-2">
      <label for="contact">Spouse Tel No:</label>
      form.spouse_telno
      </div>
      </div>

      <div class="form-row">
      <div class="form-group col-md-2">
      <label for="firstname">Father Last Name</label>
      form.father_last_name
      </div>
      <div class="form-group col-md-2">
      <label for="middlename">Father First Name</label>
      form.father_first_name
      </div>
      <div class="form-group col-md-2">
      <label for="lastname">Father Middle Name</label>
      form.father_middle_name
      </div>
      <div class="form-group col-md-2">
      <label for="emailadd">Occupation</label>
      form.father_occupation
      </div>
      <div class="form-group col-md-1">
      <label for="contact">Age</label>
      form.father_age
      </div>
      <div class="form-group col-md-2">
      <label for="contact">Father Tel No.</label>
      form.father_telno
      </div>
      </div>

      <div class="form-row">
      <div class="form-group col-md-2">
      <label for="firstname">Mother Last Name</label>
      form.mother_last_name
      </div>
      <div class="form-group col-md-2">
      <label for="middlename">Mother First Name</label>
      form.mother_first_name
      </div>
      <div class="form-group col-md-2">
      <label for="lastname">Mother Middle Name</label>
      form.mother_middle_name
      </div>
      <div class="form-group col-md-2">
      <label for="emailadd">Occupation</label>
      form.mother_occupation
      </div>
      <div class="form-group col-md-1">
      <label for="contact">Age</label>
      form.mother_age
      </div>
      <div class="form-group col-md-2">
      <label for="contact">Mother Tel No.</label>
      form.mother_telno
      </div>
      </div>
      <div class="form-row">
      <div class="form-group col-md-2">
      <label for="firstname">Sibling Last Name</label>
      form.siblings_last_name
      </div>
      <div class="form-group col-md-2">
      <label for="middlename">Sibling First Name</label>
      form.siblings_first_name
      </div>
      <div class="form-group col-md-2">
      <label for="lastname">Sibling Middle Name</label>
      form.siblings_middle_name
      </div>
      <div class="form-group col-md-2">
      <label for="emailadd">Occupation</label>
      form.siblings_occupation
      </div>
      <div class="form-group col-md-1">
      <label for="contact">Age</label>
      form.siblings_age
      </div>
      <div class="form-group col-md-2">
      <label for="contact">Sibling Tel No.</label>
      form.siblings_telno
      </div>
      </div>
      <div class="form-row">
      <div class="form-group col-md-2">
      <label for="firstname">Sibling Last Name</label>
      form.siblings2_last_name
      </div>
      <div class="form-group col-md-2">
      <label for="middlename">Sibling First Name</label>
      form.siblings2_first_name
      </div>
      <div class="form-group col-md-2">
      <label for="lastname">Sibling Middle Name</label>
      form.siblings2_middle_name
      </div>
      <div class="form-group col-md-2">
      <label for="emailadd">Occupation</label>
      form.siblings2_occupation
      </div>
      <div class="form-group col-md-1">
      <label for="contact">Age</label>
      form.siblings2_age
      </div>
      <div class="form-group col-md-2">
      <label for="contact">Sibling Tel No.</label>
      form.siblings2_telno
      </div>
      </div>
      <div class="form-row">
      <div class="form-group col-md-2">
      <label for="firstname">Sibling Last Name</label>
      form.siblings3_last_name
      </div>
      <div class="form-group col-md-2">
      <label for="middlename">Sibling First Name</label>
      form.siblings3_first_name
      </div>
      <div class="form-group col-md-2">
      <label for="lastname">Sibling Middle Name</label>
      form.siblings3_middle_name
      </div>
      <div class="form-group col-md-2">
      <label for="emailadd">Occupation</label>
      form.siblings3_occupation
      </div>
      <div class="form-group col-md-1">
      <label for="contact">Age</label>
      form.siblings3_age
      </div>
      <div class="form-group col-md-2">
      <label for="contact">Sibling Tel No.</label>
      form.siblings3_telno
      </div>
      </div>
      </div>
      <button id="previous_personal">Previous</button>
      <button id="next_educational">Next</button>
      </div>

      <input type="submit" value="submit">
      </div>






      html css django






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 28 at 2:26









      George C.

      1,7883 gold badges24 silver badges53 bronze badges




      1,7883 gold badges24 silver badges53 bronze badges










      asked Mar 28 at 1:29









      michael ababaomichael ababao

      465 bronze badges




      465 bronze badges

























          2 Answers
          2






          active

          oldest

          votes


















          0















          You need to include everything within the initial <form> tag. At the moment you have the second part of your form outside the <form></form> and so nothing is happening when you submit.






          share|improve this answer

























          • i tried to position my </form> at the second part. it was still not submitting

            – michael ababao
            Mar 28 at 2:43











          • I copied and pasted your code into a fiddle and moved the </form> tag to the end and it's submitting the form. Silly question, have you refreshed your page before you try and submit again?

            – James
            Mar 28 at 2:57











          • Thanks! Its working now. The problem is in my forms. I didn't exclude a column so it was expecting to have some input in it.

            – michael ababao
            Mar 29 at 1:44


















          0















          The second set of form fields is not in a <form> so it won't do anything on form submit. You either have to add it to the current form or wrap it in another form tag and handle that submit separately. Some type of ajax might come in handy here or maybe even using partial templates in django and having the partial be a part of the form then if you get a successful response you could show the next form and handle it almost as a completely separate form. When you submit the form you can also check the network tab in your dev tools and click on the request you just sent then go to the param tab and see what params were sent in the form submit and what their values are. I know this isn't a direct answer but hopefully it can help you debug a bit more.






          share|improve this answer



























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55388887%2fis-it-possible-to-form-submit-displaynone-values-in-django-forms%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0















            You need to include everything within the initial <form> tag. At the moment you have the second part of your form outside the <form></form> and so nothing is happening when you submit.






            share|improve this answer

























            • i tried to position my </form> at the second part. it was still not submitting

              – michael ababao
              Mar 28 at 2:43











            • I copied and pasted your code into a fiddle and moved the </form> tag to the end and it's submitting the form. Silly question, have you refreshed your page before you try and submit again?

              – James
              Mar 28 at 2:57











            • Thanks! Its working now. The problem is in my forms. I didn't exclude a column so it was expecting to have some input in it.

              – michael ababao
              Mar 29 at 1:44















            0















            You need to include everything within the initial <form> tag. At the moment you have the second part of your form outside the <form></form> and so nothing is happening when you submit.






            share|improve this answer

























            • i tried to position my </form> at the second part. it was still not submitting

              – michael ababao
              Mar 28 at 2:43











            • I copied and pasted your code into a fiddle and moved the </form> tag to the end and it's submitting the form. Silly question, have you refreshed your page before you try and submit again?

              – James
              Mar 28 at 2:57











            • Thanks! Its working now. The problem is in my forms. I didn't exclude a column so it was expecting to have some input in it.

              – michael ababao
              Mar 29 at 1:44













            0














            0










            0









            You need to include everything within the initial <form> tag. At the moment you have the second part of your form outside the <form></form> and so nothing is happening when you submit.






            share|improve this answer













            You need to include everything within the initial <form> tag. At the moment you have the second part of your form outside the <form></form> and so nothing is happening when you submit.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Mar 28 at 2:33









            JamesJames

            867 bronze badges




            867 bronze badges















            • i tried to position my </form> at the second part. it was still not submitting

              – michael ababao
              Mar 28 at 2:43











            • I copied and pasted your code into a fiddle and moved the </form> tag to the end and it's submitting the form. Silly question, have you refreshed your page before you try and submit again?

              – James
              Mar 28 at 2:57











            • Thanks! Its working now. The problem is in my forms. I didn't exclude a column so it was expecting to have some input in it.

              – michael ababao
              Mar 29 at 1:44

















            • i tried to position my </form> at the second part. it was still not submitting

              – michael ababao
              Mar 28 at 2:43











            • I copied and pasted your code into a fiddle and moved the </form> tag to the end and it's submitting the form. Silly question, have you refreshed your page before you try and submit again?

              – James
              Mar 28 at 2:57











            • Thanks! Its working now. The problem is in my forms. I didn't exclude a column so it was expecting to have some input in it.

              – michael ababao
              Mar 29 at 1:44
















            i tried to position my </form> at the second part. it was still not submitting

            – michael ababao
            Mar 28 at 2:43





            i tried to position my </form> at the second part. it was still not submitting

            – michael ababao
            Mar 28 at 2:43













            I copied and pasted your code into a fiddle and moved the </form> tag to the end and it's submitting the form. Silly question, have you refreshed your page before you try and submit again?

            – James
            Mar 28 at 2:57





            I copied and pasted your code into a fiddle and moved the </form> tag to the end and it's submitting the form. Silly question, have you refreshed your page before you try and submit again?

            – James
            Mar 28 at 2:57













            Thanks! Its working now. The problem is in my forms. I didn't exclude a column so it was expecting to have some input in it.

            – michael ababao
            Mar 29 at 1:44





            Thanks! Its working now. The problem is in my forms. I didn't exclude a column so it was expecting to have some input in it.

            – michael ababao
            Mar 29 at 1:44













            0















            The second set of form fields is not in a <form> so it won't do anything on form submit. You either have to add it to the current form or wrap it in another form tag and handle that submit separately. Some type of ajax might come in handy here or maybe even using partial templates in django and having the partial be a part of the form then if you get a successful response you could show the next form and handle it almost as a completely separate form. When you submit the form you can also check the network tab in your dev tools and click on the request you just sent then go to the param tab and see what params were sent in the form submit and what their values are. I know this isn't a direct answer but hopefully it can help you debug a bit more.






            share|improve this answer





























              0















              The second set of form fields is not in a <form> so it won't do anything on form submit. You either have to add it to the current form or wrap it in another form tag and handle that submit separately. Some type of ajax might come in handy here or maybe even using partial templates in django and having the partial be a part of the form then if you get a successful response you could show the next form and handle it almost as a completely separate form. When you submit the form you can also check the network tab in your dev tools and click on the request you just sent then go to the param tab and see what params were sent in the form submit and what their values are. I know this isn't a direct answer but hopefully it can help you debug a bit more.






              share|improve this answer



























                0














                0










                0









                The second set of form fields is not in a <form> so it won't do anything on form submit. You either have to add it to the current form or wrap it in another form tag and handle that submit separately. Some type of ajax might come in handy here or maybe even using partial templates in django and having the partial be a part of the form then if you get a successful response you could show the next form and handle it almost as a completely separate form. When you submit the form you can also check the network tab in your dev tools and click on the request you just sent then go to the param tab and see what params were sent in the form submit and what their values are. I know this isn't a direct answer but hopefully it can help you debug a bit more.






                share|improve this answer













                The second set of form fields is not in a <form> so it won't do anything on form submit. You either have to add it to the current form or wrap it in another form tag and handle that submit separately. Some type of ajax might come in handy here or maybe even using partial templates in django and having the partial be a part of the form then if you get a successful response you could show the next form and handle it almost as a completely separate form. When you submit the form you can also check the network tab in your dev tools and click on the request you just sent then go to the param tab and see what params were sent in the form submit and what their values are. I know this isn't a direct answer but hopefully it can help you debug a bit more.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 28 at 2:46









                Michael CaccianoMichael Cacciano

                2441 silver badge5 bronze badges




                2441 silver badge5 bronze badges






























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55388887%2fis-it-possible-to-form-submit-displaynone-values-in-django-forms%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript