Support

Account

Home Forums Add-ons Repeater Field Repeater data does not appear Reply To: Repeater data does not appear

  • Hi @James!

    Thanks to return! šŸ™‚

    Well, let’s go to the explanation:

    We have the “specific Follow up” that works perfectly.
    Follow up EspecĆ­fico

    I want the “Follow specific ups” of each “Phase” appears in the “Follow up General”. On here:
    Follow up Geral
    The code for the “general Follow up” appears is in my question above, but not given any returns.

    Below forward you the JSON export area of my group camps, which already includes the “Phases” and “Follow ups”:

    $phase_fields = array (
            'id' => 'acf_phases',
            'title' => __('Phases','psp_projects'),
            'fields' => array (
                array (
                    'key' => 'field_5436e7cae06b2',
                    'label' => __('Break projects into multiple phases with specific tasks.','psp_projects'),
                    'name' => '',
    				'type'	=> 'message'
                ),
                array (
                    'key' => 'field_527d5dc12fa29',
                    'label' => __('Phases','psp_projects'),
                    'name' => 'phases',
                    'type' => 'repeater',
                    'sub_fields' => array (
                        array (
                            'key' => 'field_527d5dd02fa2a',
                            'label' => __('Title','psp_projects'),
                            'name' => 'title',
                            'type' => 'text',
                            'column_width' => '',
                            'default_value' => '',
                            'placeholder' => '',
                            'prepend' => '',
                            'append' => '',
                            'formatting' => 'html',
                            'maxlength' => '',
                        ),
    					array (
                            'key' => 'field_527d5dea2fa2c',
                            'label' => __('Description','psp_projects'),
                            'name' => 'description',
                            'type' => 'wysiwyg',
                            'column_width' => '90',
                            'default_value' => '',
                            'toolbar' => 'full',
                            'media_upload' => 'no',
                        ),
    					//START FOLLOW UP
    					array (
    						'key' => 'field_57c8e3d4d2c8d',
    						'label' => __('Follow up','psp_projects'),
    						'name' => 'follow_up',
    						'type' => 'repeater',
    						'instructions' => 'Insira aqui as informaƧƵes e detalhamento em relaĆ§Ć£o a este projeto.',
    						'column_width' => '',
    						'sub_fields' => array (
    							array (
    								'key' => 'field_57c8e41bd2c8e',
    								'label' => __('Data de atualizaĆ§Ć£o','psp_projects'),
    								'name' => 'data_de_atualizaĆ§Ć£o',
    								'type' => 'date_picker',
    								'date_format' => 'yymmdd',
    								'display_format' => $date_format,
    								'first_day' => 0,
    							),
    							array (
    								'key' => 'field_57c8e4d9d2c8f',
    								'label' => __('NĀŗ do processo','psp_projects'),
    								'name' => 'n_do_processo',
    								'type' => 'text',
    								'column_width' => '',
    								'default_value' => '',
    								'placeholder' => '',
    								'prepend' => '',
    								'append' => '',
    								'formatting' => 'html',
    								'maxlength' => '',
    							),
    							array (
    								'key' => 'field_57c8e4f9d2c90',
    								'label' => __('Unidade','psp_projects'),
    								'name' => 'unidade',
    								'type' => 'text',
    								'column_width' => '',
    								'default_value' => '',
    								'placeholder' => '',
    								'prepend' => '',
    								'append' => '',
    								'formatting' => 'html',
    								'maxlength' => '',
    							),
    							array (
    								'key' => 'field_57c8e50ad2c91',
    								'label' => __('Desde','psp_projects'),
    								'name' => 'desde',
    								'type' => 'date_picker',
    								'date_format' => 'yymmdd',
    								'display_format' => $date_format,
    								'first_day' => 0,
    							),
    							array (
    								'key' => 'field_57c8e523d2c92',
    								'label' => __('SituaĆ§Ć£o','psp_projects'),
    								'name' => 'situacao',
    								'type' => 'text',
    								'instructions' => 'Ex.: "INFORMANDO BOLETIM DE DADOS TƉCNICOS"',
    								'column_width' => '',
    								'default_value' => '',
    								'placeholder' => '',
    								'prepend' => '',
    								'append' => '',
    								'formatting' => 'html',
    								'maxlength' => '',
    							),
    							array (
    								'key' => 'field_57c8e54ed2c93',
    								'label' => __('Detalhamento Kallas','psp_projects'),
    								'name' => 'detalhamento_kallas',
    								'type' => 'textarea',
    								'instructions' => 'Ex.: "EstĆ£o sendo informados zoneamento, largura e classificaĆ§Ć£o viĆ”rias, gabarito e outros dados para prosseguir posteriormente para anĆ”lise tĆ©cnica"',
    								'column_width' => '',
    								'default_value' => '',
    								'new_lines' => 'wpautop',
    								'placeholder' => '',
    								'prepend' => '',
    								'append' => '',
    								'formatting' => 'html',
    								'maxlength' => '',
    							),
    							'row_min' => '',
    							'row_limit' => '',
    							'layout' => 'row',
    							'button_label' => __('Adicionar Follow up','psp_projects'),
    						),
    							//END FOLLOW UP
    							
    			),
                    'row_min' => '',
                    'row_limit' => '',
                    'layout' => 'row',
                    'button_label' => __('Add Phase','psp_projects'),
                ),
            ),
            'location' => array (
                array (
                    array (
                        'param' => 'post_type',
                        'operator' => '==',
                        'value' => 'psp_projects',
                        'order_no' => 0,
                        'group_no' => 0,
                    ),
                ),
            ),
            'options' => array (
                'position' => 'normal',
                'layout' => 'default',
                'hide_on_screen' => array (
                ),
            ),
            'menu_order' => 3,
        );	

    How can we do so that the “Follow up General” to work successfully? Call it as in my question has not worked.

    Already, thank you very much for your help. šŸ™‚