Support » Plugin: Post My CF7 Form » Incompatibility with multistep forms

Viewing 9 replies - 1 through 9 (of 9 total)
  • Also it adds [“…”] to the value is it possible to remove these characters and just post the actual value?

    And lastly when using the action hook this error appears: Parse error: syntax error, unexpected ‘-‘, expecting ‘(‘ – am using wp_redirect( get_permalink( $post_id ) );

    Any help would be appreciated.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    When using with multistep form it posts the 3 parts of the form as 3 seperate posts (to a transient for example). Is there any way to save all to one post?

    bummer, but yes there is a way round this. You’ll need to hook into the saving procedure of the first form (action #16 in the mapping page) and save the ID of the newly created post (as a transient for example). Subsequently you will need to hook into the saving process of the next form prior to the plugin saving the fields and creating a new post using the filter,

    
    /**
          * Action to by-pass the form submission process altogether.
          * @since v1.3.0
          * @param string $key unique form key.
          * @param array $data array of submitted key=>value pairs.
          * @param array $file array of submitted files if any.
          */
          do_action( 'cf7_2_post_save-{$post_type}', $key, $data, $file);
    

    at which point you will then need to programmatically save the submitted fields to the initial post.

    Also it adds [“…”] to the value is it possible to remove these characters and

    don’t understand what you mean.

    And lastly when using the action hook this error appears: Parse error: syntax error, unexpected ‘-‘, expecting ‘(‘ – am using wp_redirect( get_permalink( $post_id ) );

    which one?

    Hi,

    Thanks for replying. Got past the first issue by using a different multistep plugin. The [“value”] only shows in the backend and the correct values are displayed on the frontend so no issue with that anymore.

    The third issue was when using the action hook to redirect to the newly created post.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    The third issue was when using the action hook to redirect to the newly created post.

    so what is the problem?

    As stated above: Parse error: syntax error, unexpected ‘-‘, expecting ‘(‘

    Plugin Author Aurovrata Venet

    (@aurovrata)

    Parse error: syntax error, unexpected ‘-‘, expecting ‘(‘ – am using wp_redirect( get_permalink( $post_id ) );

    that could be due to any reason, any file, any plugin….unless you provide a detailed error message including the file path and line number that fired this error, I can’t help you. I ain’t a wizard, can’t read the entrails of your server!

    Not to worry I’ll figure it out.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I am marking this thread as resolved since I haven’t heard back from you.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Incompatibility with multistep forms’ is closed to new replies.