Skip Navigation

[Resolved] Custom field default value should only pre-fill when creating, not editing, post

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

Problem:

If set a custom field’s default value, create a post, clear out the field value and save the post, the field still filled with default value, but it should not re-fill with the default value.

Solution:

This is fixed in the latest version of Toolset Types plugin, you can download it here:

https://toolset.com/account/downloads/

Relevant Documentation:

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.

This topic contains 3 replies, has 2 voices.

Last updated by Clifford 1 month, 3 weeks ago.

Assigned support staff: Luo Yang.

Author
Posts
#1375211

If I set a custom field's default value to "50", I expect when I create a new post that this field applies to that it will be pre-filled as "50".

If I clear out the value and save the post, all subsequent post editing should leave it blank, not re-fill it as the default value.

#1375275

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Hello,

Thanks for the feedback, I can duplicate the same problem, and escalated this issue, will update here if there is any news.

#2125069

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Hello,

This is fixed in the latest version of Toolset Types plugin, you can download it here:
https://toolset.com/account/downloads/
Please test it and feedback if the problem is fixed, thanks

#2125837

Great, will look for this going forward. Thank you!