submit to API

  • higolol-1319002555698642944

    Higolol

    5 months ago

    Help me to understand submit. I am testing in API test passes successfully, but when I press submit is not
    1319002555917009028-image.png
  • tomthebigtree-1319004777031667732

    Tom Ireland

    5 months ago

    Hey! If the button is a child element on the form, it should trigger the submit event. Is the Submit event attached to the form element?
  • tomthebigtree-1319005967219818536

    Tom Ireland

    5 months ago

    If you try it in test mode, you should see a response from your API immediately after the submit event. If not, it would indicate a potential problem but we'd need to see how the element has been configured to get a better idea. If you continue to have problems, can you share a short video? Alternatively, if your branch is public and you don't mind someone having a look, you can share your branch URL. 👍
  • higolol-1319010179987275807

    Higolol

    5 months ago

    I'v gat it. You need to use form to submit, not a button on this form.
  • tomthebigtree-1319010753495175237

    Tom Ireland

    5 months ago

    Yes, you need a submit event on the form element and the button as a child element of the form will submit it when clicked or enter is pressed. Otherwise, place the button outside of the form e.g. sibling element, use a click event and handle form data manually. 👍
  • tomthebigtree-1319011031535587399

    Tom Ireland

    5 months ago

  • wiidlandyn-1319029806591119501

    Landyn

    5 months ago

    Thanks! I completely missed that too and had the submit tied to the button and not the form. Appreciate the troubleshooting!
    👍1