Skip Navigation

[Resolved] Submitting from a form deletes whats inside a file custom field.

This support ticket is created 5 years, 6 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by stuartm-2 5 years, 6 months ago.

Assisted by: Waqar.

Author
Posts
#1321825
files for approval.PNG

Hello,

I just noticed that when i click submit from from the Toolset form the contents from a custom field are gone.
Is this a bug or did i miss something?

See pic attached. The form above [Send for approval] adds a file in tha pdf icon while the form below [approve or reject] deletes the file on submit for no reason.
You can locate the issue in this example custom post.
****/job-video-upload-issue/

#1321849
#1323017

Hi Stuart,

Thank you for waiting while I performed some tests on my website.

During troubleshooting, I was able to reproduce this issue on my test website as well.

The file type custom field's value is lost, if another post edit form exists on the page and is submitted, which doesn't include that same file type custom field in it.

I've shared these findings with the concerned team and will keep you updated with the progress through this ticket.

For now, you can use a workaround to avoid this. In your "Approvers Form", you can include the same "files-for-approval" field, but hide it using CSS code:


<div style="display: none;">[cred_field field='files-for-approval' force_type='field' class='form-control' output='bootstrap']</div>

As a result, when this second form will be submitted, this field's value won't be lost.

Appreciate your brought this forward and please let me know how it goes.

regards,
Waqar

#1326775

Looks like it is working properly now. Thank you for helping me find a solution to this.