I created a CRED form and chose the option to redirects users to the item itself after saving. I also added a custom button to the form to allow users to "Save & Continue Editing" if they prefer to stay on the form instead of being redirected.
So I have these 2 buttons:
[cred_field field='form_submit' output='bootstrap' value='Save & View Note' class='savecontinue one']
<input class="savecontinue two" type="submit" name="continue" value="Save & Continue Editing" />
My custom button works for saving all the form fields except the image field. When an image is uploaded and the form is submitted using this "Save & Continue Editing" button, it does return me to the form, saving all the text fields, but I get the following error above my form: "Because validation failed, please upload the files again."
The image field is a regular image field, and it works fine when I use the default "Save" button. This issue only occurs with the custom "Save & Continue Editing" button. All other fields save correctly using this button—just not the image field.
I’ve tried various solutions, including troubleshooting with ChatGPT, but nothing has resolved the issue so far.
Could you help me figure out how to ensure the image field is validated and saved correctly when using the custom "Save & Continue Editing" button? I do need both buttons.
Hello. Thank you for contacting the Toolset support.
Can you please share problem URL where I can see the form as well as steps I need to follow that should help me to reproduce the issue.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.