• Resolved daveh0

    (@daveh0)


    Hi – I have an optional custom field, “job type”, on a set of pages for which I am trying to set a default value. To do so I went to the ‘advanced’ tab for the field and typed the value into the ‘default value’ field. Seems pretty straight forward.

    If I save a page with a value for “job type”, I am able to access that value via the [pods] shortcode as well as programmatically in functions.php.

    However, if I leave the field blank, I do not get a value when using the same shortcode and php respectively. The expected behavior is that I would get the default value provided.

    Am I missing something?

    • This topic was modified 4 years, 6 months ago by daveh0.
Viewing 1 replies (of 1 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    I believe that once a Post is created the default value isn’t taken into account anymore, this is only for a new object.
    If you empty the field afterwards it will not return to the default value.

    Cheers, Jory

Viewing 1 replies (of 1 total)
  • The topic ‘Default value not working’ is closed to new replies.