TEMA:

Autofill select from textfield not working correctly 1 año 4 meses antes #268246

  • Autor del tema
  • michiel@TSS
  • Fuera de línea
  • Navegador Experto
  • Navegador Experto
  • Registered
  • Mensajes: 265
  • Gracias recibidas: 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?

Este mensaje contiene información confidencial

Regards,
Michiel

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Autofill select from textfield not working correctly 1 año 4 meses antes #268248

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderador
  • Moderador
  • Registered
  • Mensajes: 12079
  • Gracias recibidas: 786
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

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Última Edición: Post by tihana.krivic.

Autofill select from textfield not working correctly 1 año 4 meses antes #268249

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderador
  • Moderador
  • Registered
  • Mensajes: 12079
  • Gracias recibidas: 786
Hi again,

could you please test it now?

Let me know the result

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Autofill select from textfield not working correctly 1 año 4 meses antes #268271

  • Autor del tema
  • michiel@TSS
  • Fuera de línea
  • Navegador Experto
  • Navegador Experto
  • Registered
  • Mensajes: 265
  • Gracias recibidas: 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

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Autofill select from textfield not working correctly 1 año 4 meses antes #268272

  • Avatar de tihana.krivic
  • tihana.krivic
  • Fuera de línea
  • Moderador
  • Moderador
  • Registered
  • Mensajes: 12079
  • Gracias recibidas: 786
Hi,

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

Maybe I do something wrong

Regards,
Tihana

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Autofill select from textfield not working correctly 1 año 4 meses antes #268273

  • Autor del tema
  • michiel@TSS
  • Fuera de línea
  • Navegador Experto
  • Navegador Experto
  • Registered
  • Mensajes: 265
  • Gracias recibidas: 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
Adjuntos:

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Tiempo de carga de la página: 0.075 segundos

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!