Default values in clonable group only work on the first item

Support General Default values in clonable group only work on the first itemResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34579
    Kyle MeltonKyle Melton
    Participant

    Hi I have a group that is clonable and on a text field I have a default value. When another item is added the default value is blank.

    Here is my code for this field:

    
    [
       'name' => __( 'Button Label', 'cta-feature-product' ),
       'id'   => $prefix . 'button_label',
       'type' => 'text',
       'std'  => 'Click Here for Latest Price'
    ],
    
    #34589
    Long NguyenLong Nguyen
    Moderator

    Hi Kyle,

    To set the default value for the subfields in a group field, please follow this documentation https://docs.metabox.io/extensions/meta-box-group/#setting-default-group-values

    The builder does not have this feature.

    #35300
    Kyle MeltonKyle Melton
    Participant

    Thank you Long!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.