Use a field value to update Group Title before submit

Support General Use a field value to update Group Title before submitResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30751
    JamesTombsJamesTombs
    Participant

    Is there a way to use a field value from a text field within a group to update the Group Title?

    I am hoping to update it before the post is submitted. More than likely on field change/blur.

    Something like:

    array (
        'group_title' => {my_text_field.value},
        'id' => 'fb_week_games',
        'type' => 'group',
        'fields' => array(
            array(
                'name' => 'My text',
                'id' => 'my_text_field',
                'type' => 'text',
            ),
        ),
    ),
    #30760
    Long NguyenLong Nguyen
    Moderator

    Hi James,

    Please follow this documentation to add the subfield value to the group title https://docs.metabox.io/extensions/meta-box-group/#collapsible-groups

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