TEMA:

Auto fill fields 13 años 8 meses antes #6676

  • Autor del tema
  • CutePixel
  • Visitante
  • Visitante
On my forum, I would like to have "user address" and "send address". So that user would not write the same address twice if he would like both addresses the same I would add checkbox "Use the same address as above" and if he checks that textfield named "address2" would be filled with value of "address" field. If he would remove the tick at checkbox field "address2" would became empty. How can I make that?

Example:
If I do not have tick in box:
[b]User details:[/b]
Name: Cute
Address: Somewhere 1
Country: Noland
...

[ ] [b]Use the same data as above[/b]

[b]Shipping address:[/b]
Name:
Address:
Country:
...

If I do have tick in box:
[b]User details:[/b]
Name: Cute
Address: Somewhere 1
Country: Noland
...

[X] [b]Use the same data as above[/b]

[b]Shipping address:[/b]
Name: Cute
Address: Somewhere 1
Country: Noland
...

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

Re:Auto fill fields 13 años 8 meses antes #6691

  • Autor del tema
  • CutePixel
  • Visitante
  • Visitante

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

Re:Auto fill fields 13 años 8 meses antes #6715

  • Autor del tema
  • TheMuffinMan
  • Visitante
  • Visitante
hi,

you will basically do the same.

so you would need to set a custom "click" action on the element (button, checkbox, etc) that triggers the copy.

then you click on "create code framework" and in the click case you put something like this
ff_getElementByName('subjectCopy').value = ff_getElementByName('subject').value;
ff_getElementByName('messageCopy').value = ff_getElementByName('message').value;

and so on...

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

Re:Auto fill fields 13 años 8 meses antes #6751

  • Autor del tema
  • CutePixel
  • Visitante
  • Visitante
Great, works like a charm. Thank you. :)

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

Re:Auto fill fields 13 años 8 meses antes #6752

  • Autor del tema
  • TheMuffinMan
  • Visitante
  • Visitante
no problem

If you use BreezingForms (Current Version), please post a rating and a review at the Joomla! Extensions Directory:
extensions.joomla.org/extensions/contact...k/forms/4709/details

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

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