TOPIC:

Auto fill multiple select field: values not correctly in mail 1 month 3 weeks ago #252328

  • Topic Author
  • michiel@TSS
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 124
  • Thanks: 0
Hello,

first of all, best wishes for the new year!

We have made a fairly large form and everything works fine except for 1 thing.

I have 2 text fields which properly fill the relevant select fields with the values. (see attachment)

In the single select field, the selected value is sent correctly to the mail. However, with the multi select field, NOT ONLY the selected values ​​are sent to the mail, but all.

I've already tried everything, but unfortunately without result ...
The code in the text field is:


function ff_Extra_action(element, action)
{
jQuery("[name=\"ff_nm_ES1[]\"] > option").remove();

var lines = jQuery("[name=\"ff_nm_Extra[]\"]").val().split("\n");
for(var i = 0;i < lines.length;i++){
if(lines != "") {
jQuery("[name=\"ff_nm_ES1[]\"]").append("<option value=" + lines + " >"+ lines +"</option>");

}
}
} // ff_Extra_action

Hope you can help me with this ;)

Regards,
Michiel
Attachments:

Please Log in or Create an account to join the conversation.

Auto fill multiple select field: values not correctly in mail 1 month 2 weeks ago #252361

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 3706
  • Karma: 3
  • Thanks: 300
Hi,

could you please send me your form to test this or make some small example for me with this?

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Auto fill multiple select field: values not correctly in mail 1 month 2 weeks ago #252384

  • Topic Author
  • michiel@TSS
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 124
  • Thanks: 0
Hello,

I have made a smal test form for you te see.
Just install, fill in 3 or more lines in the "extra" textfield, select 2 lines in the multiple select field and submit.
Then you see that all the values are in the admin mail and not only the selected.

hopefully you can give me an answer to this ;)

Regards,
Michiel
Attachments:

Please Log in or Create an account to join the conversation.

Auto fill multiple select field: values not correctly in mail 1 month 2 weeks ago #252386

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 3706
  • Karma: 3
  • Thanks: 300
Hi,

unfortunately I can't install your form, something is not ok.

Could I access to your page and try to find solution for this?

If yes, please send me login information and backend link.
Use this tag:
[confidential]
[/confidential]
Only forum moderator can see this

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Auto fill multiple select field: values not correctly in mail 1 month 2 weeks ago #252389

  • Topic Author
  • michiel@TSS
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 124
  • Thanks: 0
Of course!
This message contains confidential information


Just let me know if you have anymore questions...
Regards,
michiel

Please Log in or Create an account to join the conversation.

Auto fill multiple select field: values not correctly in mail 1 month 2 weeks ago #252393

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 3706
  • Karma: 3
  • Thanks: 300
Hi,

thanks.

I have a question.
I email I can't see the extra's field.
There are:
Categorie Gerecht Omschrijving Inclusief Prijs

Am I missed something?

Also, did you try to test it like this:
function ff_Extra_action(element, action)
{
jQuery("[name=\"ff_nm_ES1[]\"] ").find('option').remove();

var lines = jQuery("[name=\"ff_nm_Extra[]\"]").val().split("\n");
for(var i = 0;i < lines.length;i++){
if(lines != "") {
jQuery("[name=\"ff_nm_ES1[]\"]").append("<option value=" + lines + " >"+ lines +"</option>");

}
}
} // ff_Extra_action

Waiting for your feedback

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Last edit: Post by tihana.krivic.
Moderators: ForumSupport
Time to create page: 0.044 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!