• Resolved rajeshpatelshah

    (@rajeshpatelshah)


    function wpf_dev_frontend_output_success($form_data, $fields, $entry_id)
    {
        if (absint($form_data['id']) !== *****) {
            return;
        }
        unset(
            $_GET['wpforms_return'],
            $_POST['wpforms']['id']
        );
        unset($_POST['wpforms']['fields']);
        wpforms()->frontend->output($form_data['id']);
    }
    add_action('wpforms_frontend_output_success', 'wpf_dev_frontend_output_success', 10, 3);

    Seeking to modify the display location of the WPForms success message to appear underneath the submitted form. Wondering if it’s feasible to relocate the success message to a position below the form upon submission.

    I have tried this 1) add_action( ‘wpforms_frontend_output_success’, ‘wpf_dev_frontend_output_success’, 0, 3 );

    2) add_action( ‘wpforms_frontend_output_success’, ‘wpf_dev_frontend_output_success’, 1000, 3 );

    None of them worked.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey @rajeshpatelshah – Thanks for reaching out!

    I apologize, providing support for custom code falls outside the scope of support we can offer. That said, to get started, you can consider taking a look at the code snippet we shared on this developer doc.

    In case it helps, here’s our tutorial with the most common ways to add custom code like this.

    For the most beginner-friendly option in that tutorial, I’d recommend using the WPCode plugin. This will protect your code from updates and keep it easy to manage right within your WordPress admin area.

    Kindly,

    Hey @rajeshpatelshah – We haven’t heard back from you since my previous message, so I’m going to go ahead and close this thread for now. But if you’d like us to assist further, please feel welcome to continue the conversation.

    Thanks!

    How do I translate the success message in wpforms?

    example: Thanks for contacting us! We will be in touch with you shortly.

    I want this message to be translated into french , if the language selction for wpforms was french.

    I’m using WPML to translate, but, could not find this text in the strings.

    Thanks

    Plugin Support Ralden Souza

    (@rsouzaam)

    Hi @fpennimp,

    Thanks for getting in touch!

    You can translate your form confirmation message using WPML by going to WPML » String Translation. Then you can set in domain your form and search for “confirmation”. This should allow you to find the confirmation message, and from there you can translate it (screenshot).

    In case it helps, please know that we have a guide about translating WPForms with WPML.

    If you’d like more help with this, could you please create a new post on our WPForms Lite support forum?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.