Sauter la navigation

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

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 support ticket is created Il y a 5 années et 3 mois. 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/Hong_Kong (GMT+08:00)

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par Clifford Il y a 3 années et 7 mois.

Assisté par: Luo Yang.

Auteur
Publications
#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

Hello,

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

#2125069

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!