TOPIC:

Value is not properly included in the mail 1 week 5 days ago #256745

  • Topic Author
  • michiel@TSS
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 140
  • Thanks: 0
Unfortunately this does not work.
Everything is still on 1 line in the select.

The code we had worked fine, only the line was broken at a space.
Maybe you could combine this code with yours in some way? (We have already tried everything, but were unsuccessful).
function ff_Categorie_action(element, action)
{
 jQuery("[name=\"ff_nm_CS1[]\"] > option").remove(); 
 jQuery("[name=\"ff_nm_CS2[]\"] > option").remove(); 
 jQuery("[name=\"ff_nm_CS3[]\"] > option").remove(); 

jQuery("[name=\"ff_nm_CS1[]\"]").append("<option value=>Kies categorie</option>");
jQuery("[name=\"ff_nm_CS2[]\"]").append("<option value=>Kies categorie</option>");
jQuery("[name=\"ff_nm_CS3[]\"]").append("<option value=>Kies categorie</option>");
    
var lines = jQuery("[name=\"ff_nm_Categorie[]\"]").val().split("\n"); 
    for(var i = 0;i < lines.length;i++){
        if(lines[i] !="") {
 jQuery("[name=\"ff_nm_CS1[]\"]").append("<option value=" + lines[i] + " >"+ lines[i] +"</option>");
 jQuery("[name=\"ff_nm_CS2[]\"]").append("<option value=" + lines[i] + " >"+ lines[i] +"</option>");
 jQuery("[name=\"ff_nm_CS3[]\"]").append("<option value=" + lines[i] + " >"+ lines[i] +"</option>");
        }
    }
} // ff_Categorie_action

Hope that we can resolve this quickly, because we are close to the deadline.

Regards,
Michiel

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

Value is not properly included in the mail 1 week 5 days ago #256749

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

got it finally :D
function ff_Categorie_action(element, action)
{
jQuery("[name=\"ff_nm_CS1[]\"] > option").remove(); 
    jQuery("[name=\"ff_nm_CS1[]\"]").append("<option value=>Choose option</option>");

    var lines = jQuery("[name=\"ff_nm_Categorie[]\"]").val().split("\n"); 
   for(var i = 0;i < lines.length;i++){
        
            jQuery("[name=\"ff_nm_CS1[]\"]").append('<option value="'+lines[i]+'">'+lines[i]+'</option>');
        }
   
} // ff_Categorie_action
With this ' " all works ok

Let me know if you need more help

Regards,
Tihana

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

Value is not properly included in the mail 1 week 5 days ago #256753

  • Topic Author
  • michiel@TSS
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 140
  • Thanks: 0
Yes !! This code works perfectly. Thank you!! ;):silly::blink:

Regards,
Michiel

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

Value is not properly included in the mail 1 week 5 days ago #256754

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

:D:D

I am glad I was able to help :)

Regards,
Tihana

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

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