Welcome, Guest

Werte von Select-Liste in einem Textfeld anzeigen?
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Werte von Select-Liste in einem Textfeld anzeigen?

Werte von Select-Liste in einem Textfeld anzeigen? 2 years, 2 months ago #12603

Kann mir jemand erklären, wie ich Werte von einer Select-Liste oder von Radio-Buttons
in einem Text Feld anzeigen kann.

z.B.

1.Select-Liste

0;bitte wählen;
0:Produkt A;199
0:Produkt B;299
0:Produkt C;399

Text-Feld1 = Ergebnis aus der 1.Select-Liste
(Im Text Feld (nur lesend) soll dann die entweder die Zahl 199,299, oder 399, stehen., die
vom Kunden ausgewählt wurde.)

2.Select-Liste

0;bitte wählen;
0:Produkt D;599
0:Produkt E;699
0:Produkt F;799

Text-Feld2 = Ergebnis aus der 2.Select-Liste
Im Text Feld (nur lesend) soll dann die entweder die Zahl 599,699, oder 799, stehen., die
vom Kunden ausgewählt wurde.

Anschließend sollen beide Texte-Felder automatisch im Text-Feld3 addiert werden

Text-Feld3=Ergebnis aus Text-Feld1 +Text-Feld2

Re:Werte von Select-Liste in einem Textfeld anzeigen? 2 years, 2 months ago #12659

Hallo D-Webvisions,

das geht ganz einfach. Was Sie möchten, ist eine Erweiterung Ihres Formulars mit einem Javascript-Event.

Den entsprechenden Event-Handler können Sie unter Eigenschaften->Erweitert des Select-Elements einfügen. Dort finden Sie die Sektion "Action Script".

Bitte vgl. Screenshot im Anhang. In meinem Test habe ich die Select-Liste "select1" genannt und das Readonly-Textfeld "tf1".

Der Event-Handler sieht dann so aus:

function ff_select1_action(element, action)
{
  if (action=='change')
    ff_getElementByName("tf1").value=element.value;
}


Ich hoffe, dieses Beispiel hilft Ihnen weiter.

viele Grüße

Perry
Breezing Forms Customer Care
scr1.jpg
  • perry
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 1.27 seconds

Facebook Discount - 40% Off!

Fans of our Facebook page here are entitled to get a 1-year-subscription for the price of a 6-months!

Steps to take:

  • Become a fan on Facebook (Like) here
  • Purchase a 6-months-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of your like and we'll upgrade to the 1-year-subscription

Joomla!® Forms Discount - 40% Off!

Already purchased a forms extension from a different vendor but your requirements changed and now you need a forms extension that is capable of more than just the standards? We help you to keep the costs for a change under control: Get a 40% discount on our professional membership plan! -- meaning timely unlimited access to all current and future commercial extensions, breezingforms themes & apps and Joomla!® templates at crosstec.de, including 1 year of support -- without any website limitations -- Just prove that you previously purchased another forms extension for Joomla!® from a different vendor and you are qualified.

Steps to take:

  • Purchase a 1-year-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of the purchase for the other form vendor and we'll upgrade to the professional-subscription

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany

Imprint