• Resolved suthawee

    (@suthawee)


    Hi, I have a question that Can I call an API after submitted a form? Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support sadiyakhanam

    (@sadiyakhanam)

    Hello @suthawee,

    I hope you are doing well.

    Thank you for reaching out to us. To achieve your requirement, you can add the provided code to your functions.php file. Here are the steps:

    • Kindly navigate to QSM > Tools > Plugin File Editor.
    • Add the provided code to any line you prefer.
    • Click Update Files.

    By doing this, we are confident that the desired action will run smoothly after submitting a quiz.

    I hope this helps! If you have any further questions or encounter any issues, please do not hesitate to reach out. We are here to assist you and ensure you have the best experience possible.

    Thank you for your patience and understanding.

    Best regards,
    Sadiya

    // Add action to the 'mlw_qmn_load_results_page' hook
    add_action('mlw_qmn_load_results_page', 'custom_api_request_on_results_page');

    // Define the function to make the API call
    function custom_api_request_on_results_page() {
    // Define the API code

    }
    Thread Starter suthawee

    (@suthawee)

    Hello,

    I have one more question. If I want to send an answer for each question with my API call, is it possible to do so? Thank for your answer.

    • This reply was modified 8 months ago by suthawee.
    Plugin Support sadiyakhanam

    (@sadiyakhanam)

    Hello @suthawee,

    I appreciate your continued engagement.

    To help you achieve your requirements, you can add the provided code to your functions.php file. Here are the steps:

    • Kindly navigate to QSM > Tools > Plugin File Editor.
    • Add the provided code to any line you prefer.
    • Click Update Files.

    This should give you all the answers and questions you need, allowing you to proceed smoothly with your tasks.

    I hope this helps. If you have any further questions or need additional assistance, please feel free to reach out. We’re here to support you every step of the way.

    Warm regards,
    Sadiya

    do_action( 'qsm_quiz_submitted', $results_array, $results_id, $qmn_quiz_options, $qmn_array_for_variables );

    Plugin Support sadiyakhanam

    (@sadiyakhanam)

    Hello @suthawee,

    We hope you are doing well

    Since we haven’t received any response from your end, I’ll be marking this ticket as resolved. However, please don’t hesitate to reach out to us if you have any further queries or require additional assistance.

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can I call an API after submitted a form?’ is closed to new replies.