• Resolved Chris

    (@web2guru)


    I had a post form with a Custom HTML block that contained a simple HTML button. I custom scripted that button to auto-fill several fields in the form based on the value of one other field. This has all been working without issue for months now.

    Recently there was an unrelated issue and I went in to review the form fields and make some changes, and when I clicked “Save Form” it gave the success message but all of the form content disappeared. I refreshed to see if it was a visual glitch, but it appears all is lost.

    After several attempts at restoring a backup and even starting from scratch, at some point everything would disappear. I figured out that it was the button in this Custom HTML block that was causing the problem. I can create a brand new post form, add a Custom HTML block with a basic HTML button, click Save Form, and it will delete everything every time.

    Here is the button code I’m using – nothing special. I tried this on a couple of different installations and get the same results. Can anyone verify that this is not just me?

    <button type="button" id="autofill">Auto-fill details</button>

Viewing 3 replies - 1 through 3 (of 3 total)
  • There is teally an issue with version 3.1.16. I also encountered this behavior. I had to revert to a backup and use version 3.1.15. Does anyone at WeDevs is there to make a quality check?

    • This reply was modified 4 years, 10 months ago by Anticosti.
    Thread Starter Chris

    (@web2guru)

    I came across another issue that is probably related. If you have a double quote in a text field’s help text, it does the same thing – everything disappears.

    The other issues that got me into all of this mess was the content editor not keeping paragraphs and Custom HTML blocks not keeping simple HTML (headings). I’m assuming both of those issues were related, and those seem to be fixed in the latest version and at least one of them was a known issue. All of this is related to formatting and how the data is being stored though, so maybe the fix for that bug is causing a problem with the button HTML and the double quotes issue too, or is related some other way. I don’t know, just throwing out ideas here.

    On another note, and I should probably create a new topic for this, but exporting a single form gives an error saying to select a form. Exporting all seems to work, but when I import, it says it did it, but there’s nothing there. I’ve been trying to save myself some work by doing an export in the middle of the form being redone and still working, but nothing has worked accept the old export from several months ago.

    Hello @web2guru and @anticosti,

    The form content disappearing issue: We are already aware of the issue and our developers have already fixed the issue. The fix will be released on our next official release of WPUF.

    If you want the hotfix, I can provide you that. In that case, you will be required to contact us as we are unable to provide it here because the fix is in a separate site.

    Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom HTML with Button Causes Everything to be Deleted’ is closed to new replies.