Skip Navigation

[Resolved] Latest Credform update strips out all custom html

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that after the user updated their forms to version 2.3.3, it strips their custom html in their form.

Solution:

This was actually because updating from their 2.2.1.2 version to 2.3.3 caused the form to default to its visual builder mode, which will remove the custom html.

This was actually fixed in our Latest 2.3.6 version.

This support ticket is created 5 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 11 replies, has 3 voices.

Last updated by grahamA 5 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#1226346
credform.jpg

I am trying to: update credform plugin 2.2.1.2 to latest site plugin version 2.3.3

Link to a page where the issue can be seen: hidden link

I expected to see: My existing html remain in the form

Instead, I got: It stripped all my custom html out! THIS HAPPENS WHEN SWAPPING EXPERT MODE
I have reset the site so you need to copy the cred form content to an external source before updating and loosing the html .
There is a backup zip of the old plugin version in plugins so you can restore to original.
site upgrade key Z64UWKLdjP

#1226558

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Graham,

Thank you for contacting our support forum.

I've performed the update on the plugins and i'm not able to see any difference in the content on the form.

Could you check right now as i've installed both version on the site.

Thanks,
Shane

#1226960

Max

I have the same problem

#1228738

Please refer back to my originally submitted jpg. The code on the left panel is the original syntax before upgrade. The expert mode editor is stripping out nested divs and custom classes added to your shortcodes. This is clearly shown in the right hand side of the jpeg and also within the form you have upgraded in the demo site. Lines #1,#11,#12,#18,#19#24,#25.

I am on annual leave currently so cannot restore my demo to show you again as I only have remote access. Please create your own demo with nested divs and custom classes where you can re-instate your database to display the bug.

This is a significant problem as I have a live site with heavy customization that needs updating. Can you provide a role back plugin while you fix the issue.

Thanks

#1228745

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Graham,

I tried testing this on a fresh install but I wasn't able to replicate the problem locally.

However I do have another customer who is experiencing a similar issue as well so investigation is being done for this.

Thanks,
Shane

#1228750

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Graham,

I believe I found the issue.

It seems because of the jump in the form version it is defaulting the form to the visual editor which will strip out the custom html.

If you set it to expert mode then you can re-add the customisations.

Would you mind allowing me to grab a copy of this site to submit to our 2nd tier supporters for review?

Thanks,
Shane

#1228752

Hi Shane

I have no problem you copying this site but how? Do I have to export the database and files as I am away from my office on vacation.

Re-adding the customization is certainly not an option as it is extensive through the site.

#1228775

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Graham,

I've identified the issue.

The problem is that as I say its the version jump. So I found that this issue can be resolved by updating to version 2.3 where the visual builder was introduced.

This will allow your form to have an expert mode checkbox. If this checkbox is checked and then you go ahead and save the form in version 2.3 then you should be able to update to the latest version without any issues.

I've also escalated this to our 2nd tier supporters for further checking because this is something that needs fixing.

Thanks,
Shane

#1229291

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Graham,

There was a patch for this, could you try the solution in the link below.
https://toolset.com/errata/custom-html-added-in-forms-versions-previous-to-2-3-is-lost-after-updating-to-2-3-4-directly/

Thanks,
Shane

#1230082

Does the fix mean i need to have the old plugin 2.3 and then do the php patches or doing the php patches is the same as doing the 2.3 to 2.3.4?
If I need the old plugins then where can I download them from please?
Thanks

#1230086

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Graham,

What I would recommend that you do is to install the plugin but before you go to any of your forms to make any edits, then apply the patch.

For the old plugins they can be downloaded from the link below.
https://toolset.com/download/toolset-cred/

Just scroll down on the page and you will see download links for the various versions.

Thanks,
Shane

#1234886

My issue is resolved now. Thank you!