# API - custom action

**URL:** <https://forum.adalo.com/t/api-custom-action/26984>\
**Category:** Get Help\
**Created:** [May 9, 2022, 9:57am UTC](https://forum.adalo.com/t/api-custom-action/26984 "2022-05-09T09:57:52Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![matty9595](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@matty9595](https://forum.adalo.com/u/matty9595)\
**Post date:** [May 9, 2022, 9:57am UTC](https://forum.adalo.com/t/api-custom-action/26984/1 "2022-05-09T09:57:52Z")

</div>

Hi everyone, in those days I have been trying multiple times (even asking for help) to use my flask API in Adalo.

When I create a custom action, I insert al the parameters that are required but in the end, after the test is successful, when I run my app the custom action doesn’t work. I can’t figure out why. Plus the others API endpoints work fine in the custom actions.

---

<div class="post-metadata">

**Author:** ![Flawless](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/flawless/32/20131_2.png) [@Flawless](https://forum.adalo.com/u/Flawless)\
**Post date:** [May 9, 2022, 12:50pm UTC](https://forum.adalo.com/t/api-custom-action/26984/2 "2022-05-09T12:50:55Z")

</div>

Hey there @matty9595

Its unclear what the problem is with such little info. Provide screenshots of the action, the parameters, and what you’re trying to accomplish because theres no way for us to know what’s going on.

---

<div class="post-metadata">

**Author:** ![matty9595](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@matty9595](https://forum.adalo.com/u/matty9595)\
**Post date:** [May 9, 2022, 6:42pm UTC](https://forum.adalo.com/t/api-custom-action/26984/3 "2022-05-09T18:42:55Z")

</div>

Thanks for your answer @Flawless . I’ll try to be more clear.

- I have a custom action that functions with an external API.
- I run a test and everything works fine.
- When I use the custom action in my app it doesn’t work.
- The hidden input is a string and not dependent on any kind of input atm

thanks in advance,  
kindly matty

 ![Screen Shot 2022-05-09 at 20.40.16 PM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/1/3/1388499c51fa08b6b328bd913003e9ceea43a1ca.png)  
 ![Screen Shot 2022-05-09 at 20.33.02 PM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/f/1/f18fd491820290cf09c3e490eec3ad5f8a953c0f.png)  
 ![Screen Shot 2022-05-09 at 20.32.56 PM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/5/a/5a784a3306e2291219f13c7b6ea398b0cb351192.png)

---

<div class="post-metadata">

**Author:** ![Flawless](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/flawless/32/20131_2.png) [@Flawless](https://forum.adalo.com/u/Flawless)\
**Post date:** [May 9, 2022, 8:47pm UTC](https://forum.adalo.com/t/api-custom-action/26984/4 "2022-05-09T20:47:38Z")

</div>

There is a space between the quotation mark and the magic text for url\_file.

Something this small could be the problem.

 ![download-3](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/1/3/136270979e3830916610defa2ab60400fee814ca.png)

---

<div class="post-metadata">

**Author:** ![matty9595](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@matty9595](https://forum.adalo.com/u/matty9595)\
**Post date:** [May 9, 2022, 9:02pm UTC](https://forum.adalo.com/t/api-custom-action/26984/5 "2022-05-09T21:02:20Z")

</div>

I’ll correct the typo, thanks. But If this is the problem, why does it work when I send the test before creating the custom action?

---

<div class="post-metadata">

**Author:** ![matty9595](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@matty9595](https://forum.adalo.com/u/matty9595)\
**Post date:** [May 9, 2022, 9:04pm UTC](https://forum.adalo.com/t/api-custom-action/26984/6 "2022-05-09T21:04:51Z")

</div>

That didn’t fix it 😥

---

<div class="post-metadata">

**Author:** ![Flawless](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/flawless/32/20131_2.png) [@Flawless](https://forum.adalo.com/u/Flawless)\
**Post date:** [May 9, 2022, 10:10pm UTC](https://forum.adalo.com/t/api-custom-action/26984/7 "2022-05-09T22:10:58Z")

</div>

I can’t see all the parameters and values. Unfortunately, I can’t tell what the problem is.

---

<div class="post-metadata">

**Author:** ![Flawless](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/flawless/32/20131_2.png) [@Flawless](https://forum.adalo.com/u/Flawless)\
**Post date:** [May 9, 2022, 10:14pm UTC](https://forum.adalo.com/t/api-custom-action/26984/8 "2022-05-09T22:14:18Z")

</div>

If you don’t want everyone to see the values, feel free to message me directly with a screenshot of the real parameters and values not blocked out.

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [May 10, 2022, 3:48am UTC](https://forum.adalo.com/t/api-custom-action/26984/9 "2022-05-10T03:48:16Z")

</div>

Sorry for interfering here!

I guess the problem is that you have attached the Custom action to a form. There’s a limitation that Custom actions are not working in Form Submit button actions. You need a Custom form. [See here](https://forum.adalo.com/t/form-exporting-data-when-submit/26618/17)

---

<div class="post-metadata">

**Author:** ![matty9595](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@matty9595](https://forum.adalo.com/u/matty9595)\
**Post date:** [May 10, 2022, 6:12am UTC](https://forum.adalo.com/t/api-custom-action/26984/10 "2022-05-10T06:12:46Z")

</div>

Thanks! I didn’t know that i can send you a pvt message.

---

<div class="post-metadata">

**Author:** ![matty9595](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@matty9595](https://forum.adalo.com/u/matty9595)\
**Post date:** [May 10, 2022, 6:13am UTC](https://forum.adalo.com/t/api-custom-action/26984/11 "2022-05-10T06:13:58Z")

</div>

Oh… that’s bad. Thanks for the information. I’ll look at the link you suggested me.

---

<div class="post-metadata">

**Author:** ![matty9595](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@matty9595](https://forum.adalo.com/u/matty9595)\
**Post date:** [May 10, 2022, 11:08am UTC](https://forum.adalo.com/t/api-custom-action/26984/12 "2022-05-10T11:08:00Z")

</div>

Many thanks to both of you guys. I solved the problem using the widget “upload file” instead of the form and it worked! 🙂 🙂 🙂 🙂

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [May 20, 2022, 11:08am UTC](https://forum.adalo.com/t/api-custom-action/26984/13 "2022-05-20T11:08:37Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
