Variable in Textfeld übergeben

  • deini
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 34
  • Thank you received: 0

deini created the topic: Variable in Textfeld übergeben

Hallo!

Ich habe in meinem Formular 2 Eingabefelder in welche der Kunde Werte eintragen kann. Diese Werte möchte ich am Schluss des Formulars noch einmal zusammenfassen.

Beispiel:
Eingabefeld 1: Kunde tragt ein "Breezingforms"
Eingabefeld 2: Kunde tragt ein "Beste"

Am Ende des Formulars soll folgender Satz stehen:
Breezingforms (Eingabefeld 1) ist das Beste (Eingabefeld 2) Formulartool der Welt.

Lässt sich das Über Variablen irgendwie lösen? Kann ich innerhalb des Formulars Varialen übergeben? Ähnlich läuft es ja bei den Mail an den Admin und den Kunden.

Danke für die Hilfe

PS. Ich arbeite mit dem Formular für Wordpress
#207444
  • Posts: 2222
  • Karma: 44
  • Thank you received: 279

marko.bosnjak replied the topic: Variable in Textfeld übergeben

Hello,

let me ask you a question.
When you say "end of the form", are you referring to a thank you page or simply a last section or textfield of the form?
If you're thinking about a thank you page, you'll have to do it by using sessions.
Here's an example on how to achieve that: crosstec.org/en/forums/41-breezingforms-...you-page.html#203000

Let me know if you have anymore questions.

Regards,
Marko

======================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
======================================
Need to renew Pro Support?
Buy Here!
======================================
Satisfied?
Consider a Membership!
======================================
Follow us on Facebook!
#207461
  • deini
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 34
  • Thank you received: 0

deini replied the topic: Variable in Textfeld übergeben

Der Text ist nicht für die Danke-SEite.
Der Text soll in ein Textfeld geschrieben werden. Besser gesagt in den Textbereich einer section
#207468
  • Posts: 2222
  • Karma: 44
  • Thank you received: 279

marko.bosnjak replied the topic: Variable in Textfeld übergeben

Hello,

here is a simple example.
There are 2 textfields named "eingabefeld1" und "eingabefeld2".
For "eingabefeld1", go to Advanced tab > Actionscript > Type > Custom > Actions > Change and paste this code in the framework:
function ff_eingabefeld1_action(element, action)
{
ff_textbereich_action(element, action);
}
For "eingabefeld2", do the exactly same thing. Go to Advanced tab > Actionscript > Type > Custom > Actions > Change and paste this code in the framework:
function ff_eingabefeld2_action(element, action)
{
ff_textbereich_action(element, action);
}
That will proceed inserted values to the textarea.

Now create a textarea named "textbereich". Go to Advanced tab > Actionscript > Type > Custom and paste this code in the framework:
function ff_textbereich_action(element, action)
{
var x = ff_getElementByName('eingabefeld1').value;
var y = ff_getElementByName('eingabefeld2').value;

ff_getElementByName('textbereich').value = x + " ist das " + y + " Formulartool der Welt.";
}
Test it out and let me know if you need any changes.

Regards,
Marko

======================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
======================================
Need to renew Pro Support?
Buy Here!
======================================
Satisfied?
Consider a Membership!
======================================
Follow us on Facebook!
#207486
  • deini
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 34
  • Thank you received: 0

deini replied the topic: Variable in Textfeld übergeben

Es hat super geklappt. DAnke für den tollen Support
#207561
  • Posts: 2222
  • Karma: 44
  • Thank you received: 279

marko.bosnjak replied the topic: Variable in Textfeld übergeben

Great!
I'm glad it's working for you.
Let me know if you need anything else.

Regards,
Marko

======================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
======================================
Need to renew Pro Support?
Buy Here!
======================================
Satisfied?
Consider a Membership!
======================================
Follow us on Facebook!
#207565
The following user(s) said Thank You: deini
Moderators: ForumSupporttomeperica
Time to create page: 0.072 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

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

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

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!

Live Support Chat Opened!

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

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here