TOPIC:

TextField Value to Textare [solved] 7 months 3 weeks ago #238483

  • Topic Author
  • mrperfectpz
  • Away
  • Expert Breezer
  • Expert Breezer
  • Posts: 161
  • Thanks: 0
Hi I wander if you can help me please,

I have a textfield with an add button next to it, when I enter value into textfield and click add button I would like to add the value to a textarea and then clear the textfield, then I can add new value and it will then add it into the textarea to create a list.

I hope I have explaind it well

Thankyou

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

Last edit: Post by mrperfectpz.

TextField Value to Textarea 7 months 3 weeks ago #238489

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

Here is how you can do what you want.

Go to the Advanced properties of the "Submit button" that you create next to the Textfield. Scroll down and in Actionscript section set Type to Custom and Action to Click.
In the code area that appears below put the following code:
function ff_buttonname_action(element, action)
{
    ff_getElementByName('textareaname').value = ff_getElementByName('textareaname').value + ff_getElementByName('textfieldname').value + "\n" ; 
    ff_getElementByName('textfieldname').value = "";
} // ff_buttonname_action
NOTE: In the code below replace 'textfieldname', 'textareaname' and 'buttonname' with the corresponding names of elements in your form.

Let me know whether you have managed to set this for your form and whether it is working as you wanted.

Regards,

Mihaela

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

TextField Value to Textarea 7 months 3 weeks ago #238514

  • Topic Author
  • mrperfectpz
  • Away
  • Expert Breezer
  • Expert Breezer
  • Posts: 161
  • Thanks: 0
Works Perfect, Thankyou for your help !!!

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

TextField Value to Textarea 7 months 3 weeks ago #238522

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

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
Moderators: ForumSupport
Time to create page: 0.046 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!