Insert a url value by javascript into a field in Breezing Forms - Breezing Forms / FacileForms how to's

Pass a field to another field in Breezing Forms with Javascript

Home Home Alternative Health Practitioners
  • Joomla 1.5/2.5/3
  • Breezing Forms/
    FacileForms

It is often useful to have a url value inserted in your Breezing Forms / FacileForms form before you submit it.
Here is a jquery method of inserting a url value into a field in your Breezing Forms / FacileForms form.


In your form->Advanced->More Options:

in the Scripts->Initialization Script section click the create Framework to establish the trigger

Then a call and function are required.
If your form is My_Form, url var is &myvar=xxxx and the text field is id ff_elem201



function ff_My_Form_init()
{
jQuery("#ff_elem201").val(getParameterByName('myvar'));

function getParameterByName(name)
{
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regexS = "[\\?&]" + name + "=([^&#]*)";
var regex = new RegExp(regexS);
var results = regex.exec(window.location.search);
if(results == null)
return "";
else
return decodeURIComponent(results[1].replace(/\+/g, " "));
}
} 





Last Updated on Saturday, 11 July 2015 10:21
 
VirtueMart
Your Cart is currently empty.

Find a Domain Name!

Enter a domain name:

www.

Select an extension:

Select all
.com.net.org.info
.name.us.biz.eu
.co.uk.be.de.nl

Search Engine Optimisation (SEO)

The importance of having your site "visible" via the important search engines can not be stressed enough.
If your site is invisible to Google then no-one is going to find you no matter how wonderful your website is.

There are methods and techniques that need to be followed to ensure that your site is highly visible to your potential client base. We can do this for you and have had a large measure of success in the web sites that we have optimised.

Searching for a wide range of alternative health practitioner search terms (keywords & key-phrases in the jargon) returns a large number of GJC Web Design maintained and designed websites.
Terms such as alternative health practitioner, colourworks & colour mirrors consistently bring visitors and clients to our target websites.

Try the link below which will take you to a real search result for one or other of our sites.

Google UK search "colour mirrors"
1st, 2nd & 3rd place



Insert a url value by javascript into a field in Breezing Forms|Breezing Forms / FacileForms how to's



Pass a field to another field in Breezing Forms with Javascript


form, var, forms, breezing, results, function, url, facileforms, replace, regex, regexs, field, elem, return, jquery, getparameterbyname, myvar, value, val, init, window, null, decodeuricomponent, search, location, exec, regexp, trigger, inserting, advanced, options, method, submit, joomla, useful, inserted, scripts, initialization, establish, required


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.