Is it possible to populate a field further on in a form from data entered in an earlier field? And maybe without the need of any action like click, change , blur or something?

Yes, you can do that.

Go to your form's properties > Advanced tab > More Options > Scripts tab. Click on the CUSTOM radio button in the Initialization Script section. After doing so, a new textarea will open up. Click on the words

"Create code framework." A popup box will open that says:

Create code framework for init now?
(Existing code will be appended)

 Click OK.

You should then see text in the textarea that looks something like this: 

function ff_FormName_init()
{

} // ff_FormName_init

Between the curly brackets add this code: 

setInterval('ff_getElementByName("TARGETFIELD").value=ff_getElementByName("ORIGINALFIELD").value',500);

 So the end result will look something like this: 

function ff_FormName_init()
{
     setInterval('ff_getElementByName("TARGETFIELD").value=ff_getElementByName("ORIGINALFIELD").value',500);
} // ff_FormName_init

In the code above, change TARGETFIELD to the name (NOT Label) of the element that you want the previously-entered data inserted into. Change ORIGINALFIELD to the name (NOT Label) of the element that will capture the data initially (the first instance of the element).

Then click the SAVE button at the bottom of the Scripts tab. Once returned to the form, click on the SAVE icon in the upper right-hand corner of the screen to save the form itself.

Then test it... it should work!

 

 

 

Special Offer

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!