Custom Fields
Re-Envisioned
Support General std value not working for Numeric field

  • Creator
    Topic
  • #30429
    closemarketing
    Participant

    Hello,
    I'm trying to use a default value but in numeric field is not working. std is supposed to work, but not.
    How could use a default value?

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #30435
    Long Nguyen
    Moderator

    Hi,

    I didn't see any issue with the setting std of the field number.

    'fields' => [
        [
            'name' => __( 'Number', 'your-text-domain' ),
            'id'   => $prefix . 'number_meta',
            'type' => 'number',
            'std'  => 123,
        ],
    ],

    Can you please share the code that creates the fields? And follow the Debugging Information step to troubleshoot the issue https://metabox.io/support/topic/how-to-create-a-new-topic/

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.