Custom HTML with Button Causes Everything to be Deleted
-
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>
- The topic ‘Custom HTML with Button Causes Everything to be Deleted’ is closed to new replies.