Created
October 2, 2017 14:53
-
-
Save GitFrankie/a8bb80226602f39fccd6e6e8e0789ef2 to your computer and use it in GitHub Desktop.
Gravity Forms - ACF - Advanced Custom Fields - populate dynamic field
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- custom field --> | |
<?php $email = get_field('send_to_email');?> | |
<?php echo do_shortcode('[gravityforms id=1 title=false description=false field_values=get_email='.$email.']'); ?> | |
<!-- repeater --> | |
<?php $email = get_sub_field('send_to_email');?> | |
<?php echo do_shortcode('[gravityforms id=1 title=false description=false field_values=get_email='.$email.']'); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment