Support

Account

Forum Replies Created

  • Thank you, the acf_update_setting mentioned in that thread was a help,

    With acf_update_setting I was able to get rid of select2, datepicker, timepicker

    Then after much searching and help from Query Monitor, I was able to get the handles and figure out alot of the others need to be dequeued through init hook, so through that I was able to get rid of jq touch punch, iris, wp-color-picker and code-editor.

    Through the init you can also get rid of jq ui core, jq ui mouse, jq ui sortable & jq ui resizable – unfortuneatly due to how they are all dependencies of each other and other scripts are dependencies/dependants of them, they seem to end up causing errors and breaking things with the main acf js object.

    Would be great if there was a way for these not all to be so intertwined however I understand why its like this, it just makes simple text field based forms somewhat pointless in acf_form when compared to other options.

    FYI for anyone in the future: I did have to also deregister & dequeue

  • Figured out a solution that works! Was actually much simpler than I was thinking it was, Here is an example:

    <?php 
    
    $clone_var = get_sub_field( 'clone_field_name' );
    
    $group_var = $clone_var['group_field_name'];
    
    if( $group_var ) :
    
        $field_var = $group_var['field_name'];
    
        echo $field_var;
    
    endif;
    
    ?>
Viewing 2 posts - 1 through 2 (of 2 total)