We have v4 (which is no longer working properly suddenly - all required fields are being ignored as required and submitting blank) so we installed a v5 version.
The v5 installation was successful. I ran the v4 restore option which I know is not stable but it restored the forms but none of the events. Is there a way to do that easily or is it something I have to recreate for each form?
As an additional note, the fields came through perfectly, just the On Load and on Submit events didn't transfer.
Hi diabolka,
There is no automatic upgrade from CFv4 to CFv5 - as you saw, the 'Experimental' restore just loads the Form HTML and that is not in CFv5 layout style.
Both will run on Joomla! 3 and my recommendation is that you build new forms in CFv5 and transfer others over when they need to be updated.
The validation problem is probably from a JavaScript error on the page.
Bob
Hi CraigH,
Max changed some of the column names in CFv5 and removed a few others.
[list]cf_created is now created
cf_created_by has gone
cf_user_id is now user_id[/list]
You can rename columns, or start new tables, or add custom code to generate the old values - depending on your specific needs.
Bob
I took a different approach, I copied the table:
[list]CREATE TABLE tableNEW LIKE tableOLD;
INSERT INTO tableNEW SELECT * FROM tableOLD;[/list]
and then removed or renamed the columns in the new table as listed below
[list]cf_id = id
cf_uid = uniq_id
cf_created = created
cf_modified = modified
cf_created_by DROP
cf_modified_by DROP
cf_ipaddress DROP
[/list]
And then changed the form DBSave action to write to the new table.
That works fine. I never worked out why renaming the existing table columns did not work for me.
Hi Craig,
The problem with changing the column names was most likely that CF had cached the names. If you change anything about an existing table, then click the Delete Cache icon in the Forms Manager toolbar to clear the cache. Sorry I didn't think of this yesterday :-(
Bob
Ah of course, yes I didn't spot that icon, I was looking all over the database looking for where it might be caching the column names, even base64 decoding the large blob of data associated with the form. I just tested that icon on my test site and that worked a treat. Ah well I will leave the live site with the newly copied table as that is working fine. Many thanks for your assistance.