Title: Won&#8217;t Submit Data
Last modified: February 24, 2020

---

# Won’t Submit Data

 *  Resolved [Aaron](https://wordpress.org/support/users/aturner68/)
 * (@aturner68)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/wont-submit-data/)
 * Testing the Forms Plugin. The form displayed okay. I have an ACF Options Page.
   I have several fields, one of which is the site logo. In my test I am trying 
   the change the site logo in an elementor Pro header template. Everything works
   if I change field in the backend with no form. I want to have the Client use 
   a form though. I have files that show my option fields and entries,but don’t 
   see how to attach. I do have the code that I have put in the Astra Child Theme.
   Maybe you can look at this code (Functions) and tell me if I have it correct 
   or missing something. The code is below. Thanks,
    Aaron
 * <?php
    /** * ADT Astra Child Theme functions and definitions * * [@link](https://wordpress.org/support/users/link/)
   [https://developer.wordpress.org/themes/basics/theme-functions/](https://developer.wordpress.org/themes/basics/theme-functions/)**
   [@package](https://wordpress.org/support/users/package/) ADT Astra Child * [@since](https://wordpress.org/support/users/since/)
   1.0.0 */
 * /**
    * Define Constants */ define( ‘CHILD_THEME_ADT_ASTRA_CHILD_VERSION’, ‘1.0.0’);
 * if( function_exists(‘acf_add_options_page’) ) {
 *  acf_add_options_page();
 * }
 * /**
    * Enqueue styles */ function child_enqueue_styles() {
 *  wp_enqueue_style( ‘adt-astra-child-theme-css’, get_stylesheet_directory_uri().‘/
   style.css’, array(‘astra-theme-css’), CHILD_THEME_ADT_ASTRA_CHILD_VERSION, ‘all’);
 * }
 * add_action( ‘wp_enqueue_scripts’, ‘child_enqueue_styles’, 15 );
 * function register_forms() {
    af_register_form( array( ‘key’ => ‘form_5e50d9e6bf2e6’,‘
   title’ => ‘Business Settings’, ‘display’ => array( ‘description’ => ”, ‘success_message’
   => ”, ), ‘create_entries’ => true, ‘restrictions’ => array( ‘entries’ => false,‘
   user’ => false, ‘schedule’ => false, ), ’emails’ => false, ) ); } add_action(‘
   af/register_forms’, ‘register_forms’ );
 * function handle_form_submission( $form, $fields, $args ) {
    $logo = af_get_field(‘
   site_logo’ ); } add_action( ‘af/form/submission/key=form_5e50d9e6bf2e6’, ‘handle_form_submission’,
   10, 3 );

Viewing 1 replies (of 1 total)

 *  Plugin Author [fabianlindfors](https://wordpress.org/support/users/fabianlindfors/)
 * (@fabianlindfors)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/wont-submit-data/#post-12484610)
 * I believe I have responded to you through a different medium so I’ll close this
   for now. 🙂

Viewing 1 replies (of 1 total)

The topic ‘Won’t Submit Data’ is closed to new replies.

 * ![](https://ps.w.org/advanced-forms/assets/icon-256x256.png?rev=1894254)
 * [Advanced Forms for ACF](https://wordpress.org/plugins/advanced-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-forms/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [fabianlindfors](https://wordpress.org/support/users/fabianlindfors/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/wont-submit-data/#post-12484610)
 * Status: resolved