TOPIC:

Daten Radio Button übernehmen in neues Feld 10 months 3 weeks ago #237461

  • Eddy.vh's Avatar
  • Eddy.vh
  • Online
  • Gold Breezer
  • Gold Breezer
  • Posts: 354
  • Karma: 3
  • Thanks: 59
Gern geschehen. ;)

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

Daten Radio Button übernehmen in neues Feld 9 months 4 weeks ago #237748

  • Topic Author
  • dada34
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 15
  • Thanks: 0
Ich versuchte das gleiche mit einer Checkbox. Aber irgendwie kriege ich es nicht hin. Wie müsste hier der Code heissen?

Wenn Checkbox1 ist checked = true;
Checkbox2 checked = true zuweisen.

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

Daten Radio Button übernehmen in neues Feld 9 months 4 weeks ago #237756

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 413
Hello,

I hope that we can continue in English.

Here is the code that will check Checkbox2 if Checkbox1 is checked and uncheck Checkbox2 in the opposite:
function ff_KopieBtn_action(element, action)
{
    if(  ff_getElementByName('Checkbox1').checked == true) {
        ff_getElementByName('Checkbox2').checked = true;
    }
    else  {
         ff_getElementByName('Checkbox2').checked = false;
    }
} // ff_KopieBtn_action
NOTE: In this code, 'Checkbox1' is the name of the first checkbox, 'Checkbox2' name of the second one and 'KopieBtn' name of the button which does the action.

Let me know whether this works as you wanted.

Regards,

Mihaela
The following user(s) said Thank You: dada34

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

Daten Radio Button übernehmen in neues Feld 9 months 4 weeks ago #237762

  • Topic Author
  • dada34
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 15
  • Thanks: 0
Thank you very much. This works perfect.

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

Daten Radio Button übernehmen in neues Feld 9 months 4 weeks ago #237767

  • mihaela
  • Offline
  • Developer
  • Developer
  • Posts: 3128
  • Karma: 105
  • Thanks: 413
Hi again,

Great, I'm glad I've helped and that it is working as you wanted. :)

Regards,

Mihaela

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

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.052 seconds

Summer Sale!

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!