How to add admin functionality to allow ability to choose different field group to display on webpage using Advanced Custom Fields?

In order to achieve what I needed, I had to detect if any of the fields (in my case only 3 were necessary) were left empty. If any of them were empty, then the test failed and the “else” part of the code gets executed (the else part contains markup for the “alternate field group”).

Here is my code:

<?php if( get_field('top_left_icon') && get_field('top_left_title') && get_field('top_left_text') !== '' ): ?>

<h2 class="calendar" style="background:url(<?php the_field('top_left_icon');?>) no-repeat left center;"><?php the_field('top_left_title');?></h2>
<?php the_field('top_left_text');?>

<?php if( (get_field('top_left_button_text')) && (get_field('top_left_button_link'))){?>
    <a class="button" href="https://wordpress.stackexchange.com/questions/132289/<?php the_field("top_left_button_link'); ?>"><?php the_field('top_left_button_text'); ?></a>
<?php } ?>

In addition, I had to create an “alternate” field group in WordPress Admin area for my page. Hope this helps anybody that may have something similar.