TEMA:

Combining Multiple Elements into One Element 3 años 3 meses antes #243443

  • Avatar de bruce@brucedill.com Autor del tema
  • bruce@brucedill.com
  • Fuera de línea
  • Navegador Platino
  • Navegador Platino
  • Registered
  • Mensajes: 1472
  • Gracias recibidas: 9
Breezing Forms

Elements = A, B, C, D

On SUBMIT I would like to combine elements A, B, and C and save them into element D.

How do I do this?

Thank you so much for your help.

Bruce

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

Combining Multiple Elements into One Element 3 años 3 meses antes #243445

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

For example:
Go to your form->Advanced->more options->Scripts->
Initialization Script->Custom->Create code framework and try this:
function ff_comb_init()
{
  setInterval(calc, 500);
} // ff_comb_init

function calc() {
ff_getElementByName("d").value=ff_getElementByName("a").value+ff_getElementByName("b").value+ff_getElementByName("c").value;
}
Note: comb is name of form. Please replace comb with your form name, and a,b,c,d is name for form element A,B,C,D. Please replace this with your name for A,B,C,D.

Let me know if you want this.

Regards,
Tihana

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

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

Combining Multiple Elements into One Element 3 años 3 meses antes #243477

  • Avatar de bruce@brucedill.com Autor del tema
  • bruce@brucedill.com
  • Fuera de línea
  • Navegador Platino
  • Navegador Platino
  • Registered
  • Mensajes: 1472
  • Gracias recibidas: 9
That is working perfectly BUT, how do I put a space between the fields?

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

Combining Multiple Elements into One Element 3 años 3 meses antes #243479

  • Avatar de bruce@brucedill.com Autor del tema
  • bruce@brucedill.com
  • Fuera de línea
  • Navegador Platino
  • Navegador Platino
  • Registered
  • Mensajes: 1472
  • Gracias recibidas: 9
AND how do I insert a space+a word like "Breeder:"

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

Combining Multiple Elements into One Element 3 años 3 meses antes #243480

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

To add space you need add " ":
function ff_comb_init()
{
  setInterval(calc, 500);
} // ff_comb_init

function calc() {
ff_getElementByName("d").value=ff_getElementByName("a").value+" " +ff_getElementByName("b").value+" " +ff_getElementByName("c").value;
}

Regards,
Tihana
El siguiente usuario dijo gracias: bruce@brucedill.com

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

  • Página:
  • 1
Tiempo de carga de la página: 0.059 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!