TOPIC:

Autofill select from textfield not working correctly 10 months 2 weeks ago #268246

  • Topic Author
  • michiel@TSS
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 232
  • Thanks: 1
Hello,

I have a textfield that automatically fills multiple select fields. The code I use for this is:
function ff_Categorie_action(element, action)
{
jQuery("[name=\"ff_nm_CS_01[]\"] > option").remove();
jQuery("[name=\"ff_nm_CS_02[]\"] > option").remove();
jQuery("[name=\"ff_nm_CS_03[]\"] > option").remove();
jQuery("[name=\"ff_nm_CS_04[]\"] > option").remove();
jQuery("[name=\"ff_nm_CS_05[]\"] > option").remove();


jQuery("[name=\"ff_nm_CS_01[]\"]").append("<optionvalue= >Kies categorie</option>");
jQuery("[name=\"ff_nm_CS_02[]\"]").append("<optionvalue= >Kies categorie</option>");
jQuery("[name=\"ff_nm_CS_03[]\"]").append("<optionvalue= >Kies categorie</option>");
jQuery("[name=\"ff_nm_CS_04[]\"]").append("<optionvalue= >Kies categorie</option>");
jQuery("[name=\"ff_nm_CS_05[]\"]").append("<optionvalue= >Kies categorie</option>");

    var lines = jQuery("[name=\"ff_nm_Categorie[]\"]").val().split("\n"); 
   for(var i = 0;i < lines.length;i++){

jQuery("[name=\"ff_nm_CS_01[]\"]").append('<option value="'+lines[i]+'">'+lines[i]+'</option>');
jQuery("[name=\"ff_nm_CS_02[]\"]").append('<option value="'+lines[i]+'">'+lines[i]+'</option>');
jQuery("[name=\"ff_nm_CS_03[]\"]").append('<option value="'+lines[i]+'">'+lines[i]+'</option>');
jQuery("[name=\"ff_nm_CS_04[]\"]").append('<option value="'+lines[i]+'">'+lines[i]+'</option>');
jQuery("[name=\"ff_nm_CS_05[]\"]").append('<option value="'+lines[i]+'">'+lines[i]+'</option>');

        }
   
} // ff_Categorie_action
Now this works great and I get all the values in the mail!
But after linking this form with Contentbuilder, the values ​​of the selectfields are no longer included in the CSV file and are reset when I edit the form again.

So it seems that these values ​​are NOT stored... how can we solve this?

This message contains confidential information

Regards,
Michiel

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

Autofill select from textfield not working correctly 10 months 2 weeks ago #268248

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

I need to check this deeper, so please give me some time :)

Could you please send me link where I can see this view?

UPDATE: found it :)

Regards,
Tihana

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

Last edit: Post by tihana.krivic.

Autofill select from textfield not working correctly 10 months 2 weeks ago #268249

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 11785
  • Karma: 3
  • Thanks: 761
Hi again,

could you please test it now?

Let me know the result

Regards,
Tihana

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

Autofill select from textfield not working correctly 10 months 1 week ago #268271

  • Topic Author
  • michiel@TSS
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 232
  • Thanks: 1
Hi Tihana,

still not working. Please make a record like this to test:
1. type 3 categories in the textfield
2. select the 3 categories on the next page and save the record (green button)
3. edit the record you just made and check if the categories are still correctly in the selectfields... (not working at my records ;))
Michiel

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

Autofill select from textfield not working correctly 10 months 1 week ago #268272

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

I do what you said, and for me on edit everything what I added is here.

Maybe I do something wrong

Regards,
Tihana

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

Autofill select from textfield not working correctly 10 months 1 week ago #268273

  • Topic Author
  • michiel@TSS
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 232
  • Thanks: 1
Hi,

The category textfield is saved correctly


But the selectfield on the next page aren't saved correctly when you edit the record again (not by me)


Regards,
Michiel
Attachments:

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

Time to create page: 0.138 seconds

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

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!