web design, England, Britain, UK, belgium
 
Ulti Clocks content

Pass a field to another field in Breezing Forms

sand Pass a field to another field in Breezing Forms with Javascript
field, surname, forename, value, init, getelementbyname, var, function, element, input, facileforms, text, forms, breezing, condition, form, current, pass, format, combined, values, previous, pulled, fields, tab, submit, page, copied, useful, joomla, normal, script, javascript, use, scripts, section, code

Home Joomla - VirtueMart Breezing Forms / FacileForms Pass a field to another field in Breezing Forms
Pass a field to another field in Breezing Forms
  • Joomla 1.5
  • Breezing Forms/
    FacileForms

It is often useful to have a field copied into another further on in your Breezing Forms / FacileForms form before you submit it.
Here is how to pass a field on to a further page in your Breezing Forms / FacileForms form.



Breezing Forms / FacileForms pass field to another


Make a new text input as normal.

In the Init Script section of the Scripts tab use this Javascript code to pass the value to this field. -





function ff_eo_name_init(element, condition)
{
var surname = ff_getElementByName('surname').value;
var forename = ff_getElementByName('forename').value;

var text_input3 = ff_getElementByName('eo_name');
text_input3.value = forename+" "+surname;
}

  • The name of the current element must be in the function name in this format -
    function ff_current-field_init(element, condition)
  • 2 values are being pulled from previous fields - surname and forename
  • They are being combined in the new field eo_name


Add this page to your favorite Social Bookmarking websites
Digg! Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! Slashdot! Technorati! StumbleUpon! Spurl! Newsvine! Furl! Fark! Yahoo! Netvouz! Mister-Wong! RawSugar! Ma.gnolia! Squidoo! DZone! Swik!
Last Updated on Thursday, 27 May 2010 18:58
 

Our Recommended Reading

For those interested in extending their knowledge of Joomla! & VirtueMart, Packt Publishing has an excellent range of help & how to books.
Listed below are some I can recommend.
Simply click on the images to be taken directly to their web shop.


Joomla! Social Networking with JomSocial
Joomla! Social Networking
with JomSocial

by Kwasi Boateng & Beatrice A. Boateng.
Joomla! 1.5 Multimedia
Joomla! 1.5 Multimedia
by Allan Walker.


Building job sites with Joomla!
Building job sites with Joomla!
by Santonu Kumar Dhar.

Joomla! Template Design: Create your own professional-quality templates with this fast, friendly guide
Joomla! Template Design: 2nd Edition
Create your own professional-quality
templates with this fast, friendly guide
by Tessa Blakeley Silver.
Magento: Beginner's Guide
Magento: Beginner's Guide by William Rice
is a must for anyone trying the
open-source e-Commerce solution.

Read the review

object-oriented-javascript-applications-libraries
Object-Oriented JavaScript by
Stoyan Stefanov gives you a very
comprehensive grounding in
the latest Javascript techniques.

Read the review
Joomla! Web Security
Joomla! Web Security
by Tom Canavan.

Joomla 1.5 Top Extensions Cookbook
Joomla 1.5 Top Extensions Cookbook by
Suhreed Sarkar is an ideal and concise round up of the extensions available for the Joomla! system.

Read the review

Latest Articles

Showcase

  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow

Paypal Donation

If you use this module on your site please donate a small amount.
Any donation amount appreciated.



Pass a field to another field in Breezing Forms



Pass a field to another field in Breezing Forms with Javascript


field, surname, forename, value, init, getelementbyname, var, function, element, input, facileforms, text, forms, breezing, condition, form, current, pass, format, combined, values, previous, pulled, fields, tab, submit, page, copied, useful, joomla, normal, script, javascript, use, scripts, section, code