Pass a field to another field in Breezing Forms - Breezing Forms / FacileForms how to's

Pass a field to another field in Breezing Forms with Javascript

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
Last Updated on Thursday, 27 May 2010 18:58
 

Latest Articles

VirtueMart
Your Cart is currently empty.

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|Breezing Forms / FacileForms how to's



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


guru

We use cookies to improve our website and your experience when using it. Cookies used for the essential operation of the site have already been set.
To find out more about the cookies we use and how to delete them, see our privacy policy.

I accept cookies from this site.