Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

156
Views
recibir múltiples valores de selección de formulario en netlify

tengo un formulario que tiene un menú de selección múltiple, cuando envío el formulario recibo solo el primer valor,

 function form(){ var subjectObject = { "Training Pack(s)": ["Stellar Pack", "Professional Pack", "Expert Pack"], "Business Pack": ["Business Pack"], "ICT Solutions": ["Web Development", "Networking Solutions", "Data Analytics"], "1-1 Sessions": ["Professional CV Writing & Templates", "Job Seeking Skills", "Interview/Test Preparation", "Business Startup Skills", "MS Excel Advanced Session", "MS Word & PowerPoint", "Project Management Introduction", "Presentation & Coaching Skills", "Sales Techniques"], "Materials": ["Job Application Materials", "Professional CV", "Proposal Writing"] } var subjectSel = document.getElementById("service"); var topicSel = document.getElementById("topic"); for (var x in subjectObject) { subjectSel.options[subjectSel.options.length] = new Option(x, x); } subjectSel.onchange = function() { topicSel.length = 1; var z = subjectObject[subjectSel.value]; for (var i = 0; i < z.length; i++) { topicSel.options[topicSel.options.length] = new Option(z[i], z[i]); } } }

HTML:

 <form name="contact" netlify> <div class="row"> <div class="optional">Services Section (optional):</div> </div> <div class="select-menus"> <div class="row"> <select name="service" id="service" class="select-menu"> <option value="" selected="selected">Select Service</option> </select> <select name="topic" id="topic" class="select-menu" multiple size="1"> <option disabled>Select Topic (Hold 'Ctrl' For Multiple Select)</option> </select> </div> </div> <input type="submit" value="Send" class="submit-button"> </form>

me envía el envío del formulario con solo el primer valor verificado de este

 <select name="topic" id="topic" class="select-menu" multiple size="1"> <option disabled>Select Topic (Hold 'Ctrl' For Multiple Select)</option> </select>

pero lo que quiero es recibir todos los valores seleccionados/verificados

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!