Skip Navigation

[Resolved] Default value for generic field on edit CRED form

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 2 replies, has 2 voices.

Last updated by julieP 10 months, 2 weeks ago.


I'm using a generic field on an edit form. How do I set the dropdown to display the current value for the post please? In my tests, the current value for the post is 11.15 but the edit form displays 09.00 (the first value in the list). I've tried it numerous ways using the types shortcode and a custom shortcode but it's not working. Here's my generic field code:-

[cred_generic_field type='select' field='wpcf-action-time']

Many thanks



Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

You have a default option (currently empty in your example).

I just made a custom shortcode [default] that simply returns "2" and then was able to set the second option as the default like so:

[cred_generic_field type='select' field='selection']

I'm not sure what you are using to try and set the default, but in principle there is no reason you cannot set the default via a shortcode.


Not sure what happened but when I visited the page later on, the value from the post was showing (as expected/required). I'll monitor it and re-visit if I need to.