TOPIC:

Auto fill multiple select field: values not correctly in mail 1 week 5 days ago #252716

  • Topic Author
  • michiel@TSS
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 118
  • Thanks: 0
Hi Tihana,

Sorry for the late response, but apparently I completely missed your email;)

I tried your code and because everything came up one after the other in the select field I changed it slightly, to:
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[i] != "") {
jQuery("[name=\"ff_nm_ES1[]\"]").append("<option value=" + lines[i] + " >"+ lines[i] +"</option>");

}
}
} // ff_Extra_action

But still not only the selected values ​​are included in the mail, unfortunately.

The extra was above the column, but now put it behind it.
Categorie | Gerecht | Omschrijving | Inclusief | Prijs | Extra

Hope you want to look again to solve this and I will keep an eye on my mail ;)

Regards,
Michiel

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

Auto fill multiple select field: values not correctly in mail 1 week 5 days ago #252728

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

ah I saw now.
Give me some time for this, that I can investigate it on your page :)

Regards,
Tihana

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

Auto fill multiple select field: values not correctly in mail 1 week 2 days ago #252894

  • Topic Author
  • michiel@TSS
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 118
  • Thanks: 0
Hi Tihana,

I have another question regarding this form. We have a lot of number fields in this form, and regardless of whether I fill them in with a dot or comma (eg 1.90 or 1.90) all values ​​come as dot (1.90) in the mail.
How can I change this so that all number fields come as comma amounts in the mail (1.90)?

Regards,
Michiel

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

Auto fill multiple select field: values not correctly in mail 1 week 2 days ago #252896

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

if you want to replace dot with coma go to each element -> Advanced->Actionscript->check custom and put this:
function ff_nameofyourelement_action(element, action)
{
    switch (action) {
        case 'change':
element.value=element.value.replace(/\,/g, '').replace(/\./g, ',');
            break;
        default:;
    } // switch
} // ff_nameofyourelement_action
This will replace dot with comma. Please replace nameofyourelement with name of your element (not title)

Regards,
Tihana

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

Auto fill multiple select field: values not correctly in mail 1 week 2 days ago #252901

  • Topic Author
  • michiel@TSS
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 118
  • Thanks: 0
hi,
Thanks for your reply but for this field we have a managed script like this:
function ff_decimalen(element,action)
{
var result=Number(element.value);
var result1=result.toFixed(2);
element.value=result1;
} // ff_decimalenelement
This is working nice and give the number field so how does your code work within this so we won't have to go through all the fields and add the actionscript??

Thanks

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

Auto fill multiple select field: values not correctly in mail 1 week 2 days ago #252905

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

ok, if you in want to replace dot with comma in this element you can do it on this way:
function ff_decimalen_action(element, action)
{
    var result=Number(element.value);
var result1=result.toFixed(2);
element.value=result1.replace(/\,/g, '').replace(/\./g, ',');
} // ff_decimalen_action

Regards,
Tihana

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

Moderators: ForumSupport
Time to create page: 0.052 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!