Support

Account

Forum Replies Created

  • Thanks again, @rgdesign ! 🙂

    But what I did was just that.
    I’m sorry I did not explain right away in the first question.

    The code of the first question is the php that I exported from my old custom field, I used the same key in my new location and the values of the old one do not come, they are blank.

    But it’s alright. Let’s leave it like this, okay?

    Thank you very much for your efforts to help me resolve the issue.

    (I will put the first question as solved, regarding the dates, because it solved even rsrs)

    Thankfully,
    Amanda

  • Hi, @rgdesign!

    No. That’s not what I’m trying to do. I did exactly that “I clone” the repeater, but what I want are the data registered in them, I believe they are in the database, I do not know ..

    It is possible?

    Because I “cloned” the repeater and the information that was registered did not come together. Do you understand? It is as if nothing has been registered in it, even if the key is the same ..

    Well, I guess that’s not possible, is it?

    Thank you!

  • Hello, @rgdesign !

    Thank you for the prompt and efficient response.
    On the first question was super sure with if $ date. Thank you!

    About the second question, it is really complicated to explain. Let’s see if I can explain myself better now:

    I created a form with some custom fields (inside a repeater), which in the frontend becomes a table, the data entered in this table is that I would like to find them, since I registered them and saved them, where I can find them to use in Another repeater? Does it exist? It’s possible? I hope I have been able to express myself better this time. 🙂

    Again, thank you very much! <3

  • Hello, @stormwind!

    Thank you for your return.
    I already got it.
    The problem was in get_field, I changed to get_sub_field and that’s it and ready the date selected appears as it would be.
    Silly thing. rsrsrs

    Thank you so much

  • Hi!!

    I know the topic has already been solved, but I’m looking for just that !! However, for my case it did not work. I inserted in the functions.php of my theme. That’s right??

    add_action('acf/input/admin_head', 'my_acf_admin_head');
    
    function my_acf_admin_head() {
    	
    	?>
    	<script type="text/javascript">
    	(function($) {
    		
    		acf.add_action('ready', function(){
    			
    			$('body').on('click', '.acf-repeater .acf-row-handle .acf-icon.-minus', function( e ){
    				
    				return confirm("Tem certeza que irá deletar este item?");
    				
    			});	
    			
    		});
    		
    	})(jQuery);	
    	</script>
    		
    	<?php	
    	
    }

    What am I doing wrong?
    Thank you in advance.

  • Hi @James!

    Ah! Perfect!
    I’ll do it! Thank you very much. <3

  • Hi @James

    Yuuuupiiii!! Hurrah!
    It worked !!

    Thanks, thanks! Thank you very much!
    The solution is so simple that it seethes, right? hahaha

    When you say “it seems there’s something wrong with your custom field options”, what appears specifically? For me it has worked without problems. Do you think I need to do something?

    Well, thank you very much! <3

    P.S. Sorry my English immature

  • 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. 🙂

Viewing 8 posts - 1 through 8 (of 8 total)