• Resolved luizarusso

    (@luizarusso)


    Hello, guys.

    I’d like to access my API through the plugin’s submission button. Dow we have a way to change the button’s functionality?
    Once the person submits it’s name, e-mail and car’s plate, I’d like to create a personalized coupom code. So I need to access my API.
    Thank you!!

Viewing 1 replies (of 1 total)
  • Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @luizarusso

    Hope you’re doing well!

    I’ve asked our developer for feedback about your question and quoting their answer below:

    With Hustle, you may try a filter hustle_parsed_success_message for getting the success message. When hooked in there, you should be able to do what’s required on the server-side (like retrieving data from the API) and display the customized message on successful submission. The filter has several parameters to know the submitted data and other values.

    There’s also a filter hustle_form_after_handle_submit for right after the submission, both as success or failure.

    And there are a couple of events on JS side that you might want to use if you wish to do anything from the client’s side
    hustle:module:submit on submit,
    hustle:module:submit:success on success,
    hustle:module:submit:failed on failure.

    Hope this helps!

    Have a good day and take care!

    Kind regards,
    Nastia

Viewing 1 replies (of 1 total)
  • The topic ‘how to access my API through the plugin’s submission button’ is closed to new replies.