Apr 3rd, 2010, 4:23 PM
Hey Bert,
Sorry for the wait!
Even if your page is just HTML, any multi-select fields will need to have those brackets at the end of the select box's name attribute. So, your HTML would look like this:
But also, I'm pretty sure you'll need to add a "multiple" attribute to allow the users to be able to select multiple items, so try this:
I'm not quite following you here... but in terms of seeing the info in Form Tools, I'd suggest doing this: temporarily change the field type for the "pr_naam" within Form Tools to a textarea field. That'll be easiest to see what values are actually being stored by Form Tools for each form submission. Once it's been ascertained that it is indeed storing multiple values (separated by a ", "), you can go back and change it back to a multi-select field with the appropriate dropdown values.
I really do think it's just a configuration problem in the form - Form Tools doesn't care HOW the form is actually created. You could use JS to construct the entire form - form element included! - as long as it receives a POST request, it's happy.
If you like, post me back with a link to the form and I could take a look to confirm the form looks okay.
- Ben
Sorry for the wait!
Quote:1. where exactly do I make sure the field value has [] brackets?
Even if your page is just HTML, any multi-select fields will need to have those brackets at the end of the select box's name attribute. So, your HTML would look like this:
Code:
<select id="pr_naam" name="pr_naam[]" class="selectmultiple"><option value=""></option></select>
But also, I'm pretty sure you'll need to add a "multiple" attribute to allow the users to be able to select multiple items, so try this:
Code:
<select id="pr_naam" name="pr_naam[]" class="selectmultiple" multiple><option value=""></option></select>
Quote:2. in the rule? in the form field name? and how am I sure that within form tools the right field value(s) appear(s)?
I'm not quite following you here... but in terms of seeing the info in Form Tools, I'd suggest doing this: temporarily change the field type for the "pr_naam" within Form Tools to a textarea field. That'll be easiest to see what values are actually being stored by Form Tools for each form submission. Once it's been ascertained that it is indeed storing multiple values (separated by a ", "), you can go back and change it back to a multi-select field with the appropriate dropdown values.
Quote:3. Could the javascript used to automatically trigger the list in 'pr_naam' be the cause of the problem?
I really do think it's just a configuration problem in the form - Form Tools doesn't care HOW the form is actually created. You could use JS to construct the entire form - form element included! - as long as it receives a POST request, it's happy.
If you like, post me back with a link to the form and I could take a look to confirm the form looks okay.
- Ben