# Custom Action - Blank Result

**URL:** <https://forum.adalo.com/t/custom-action-blank-result/43599>\
**Category:** External Collections, Custom Actions & Collections\
**Created:** [November 28, 2023, 11:11pm UTC](https://forum.adalo.com/t/custom-action-blank-result/43599 "2023-11-28T23:11:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dominiconorton](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@dominiconorton](https://forum.adalo.com/u/dominiconorton)\
**Post date:** [November 28, 2023, 11:11pm UTC](https://forum.adalo.com/t/custom-action-blank-result/43599/1 "2023-11-28T23:11:36Z")

</div>

Hello All

The custom action works however when I attempt to a field to a collection it is blank.

Hope somebody can help

---

<div class="post-metadata">

**Author:** ![Rozza](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/rozza/32/22780_2.png) [@Rozza](https://forum.adalo.com/u/Rozza)\
**Post date:** [November 28, 2023, 11:22pm UTC](https://forum.adalo.com/t/custom-action-blank-result/43599/2 "2023-11-28T23:22:39Z")

</div>

This should be the magic text you use in your Create Message action  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/d/b/db227b2c7e7d033016f7b27e65ff563758f20178.png)

You are referencing the returned “Model”

---

<div class="post-metadata">

**Author:** ![dominiconorton](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@dominiconorton](https://forum.adalo.com/u/dominiconorton)\
**Post date:** [November 28, 2023, 11:27pm UTC](https://forum.adalo.com/t/custom-action-blank-result/43599/3 "2023-11-28T23:27:20Z")

</div>

Rizza

Regardless whether I reference model or anything else it should not be blank.

---

<div class="post-metadata">

**Author:** ![Rozza](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/rozza/32/22780_2.png) [@Rozza](https://forum.adalo.com/u/Rozza)\
**Post date:** [November 28, 2023, 11:38pm UTC](https://forum.adalo.com/t/custom-action-blank-result/43599/4 "2023-11-28T23:38:25Z")

</div>

I would check the browser inspector, see what the api response is there. When previewing.

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/victor/32/2054_2.png) [@Victor](https://forum.adalo.com/u/Victor)\
**Post date:** [November 29, 2023, 6:31am UTC](https://forum.adalo.com/t/custom-action-blank-result/43599/5 "2023-11-29T06:31:56Z")

</div>

Hi @dominiconorton,

Usually when a custom action **works** in the test mode, but **doesn’t work** in the app means that something in the payload stops this action from being executed correctly.

When you try to debug such issues, the easiest thing to start from is to put plaintext values to the action’s parameters _in the app_. E.g. instead of putting magic text into Tone Type, etc. you just type in the values in a plain text and run this action in a previewer.  
Ideally you start with the same values like you’ve put in the custom action settings to test the action. Then you have 2 outcomes:

1. The action works fine with hardcoded values. Here you can start changing values from hardcoded to magic text one by one (or replacing hardcoded values with other ones - I doubt that you put all this long message text in the action setup).  
At some point of time you may find what is causing the action to fail.
2. The action doesn’t work with hardcoded values. Then it’s something related to action’s settings. To investigate further, you will need to look at browser debug console.

By the way, as Rozza mentioned, you can start from looking at a browser console while you’re testing the action. So what you need to do:

- launch the previewer and open the screen with a custom action on it
- launch console (In Chrome for Mac, it is located in View → Developer → JavaScript Console)
- go to Network tab
- clear Network log (there is an icon on the left, in my console it’s second from the left)
- then press a button to execute the action.  
You will see network calls with “execute” in it (I think there should be 2 of them). By inspecting each of them (clicking on a call will result in opening its details), you may see what was sent and what reply was received from Adalo’s backend.

Hope this helps.

Best,  
Victor.

---

<div class="post-metadata">

**Author:** ![dominiconorton](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@dominiconorton](https://forum.adalo.com/u/dominiconorton)\
**Post date:** [November 29, 2023, 6:49am UTC](https://forum.adalo.com/t/custom-action-blank-result/43599/6 "2023-11-29T06:49:15Z")

</div>

Thank you @Victor

Here’s what I did:

1. Deleted every input component
2. Replaced them with static text components
3. Tested with the same inputs as in the test request
4. Replaced the input components with dropdowns, one by one, testing each after replacement.

There was likely an error with one of the components impacting the payload.

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/victor/32/2054_2.png) [@Victor](https://forum.adalo.com/u/Victor)\
**Post date:** [November 29, 2023, 6:50am UTC](https://forum.adalo.com/t/custom-action-blank-result/43599/7 "2023-11-29T06:50:21Z")

</div>

Hi @dominiconorton,

Great that you solved it! Sometimes Adalo is a bit glitchy 🙂

Best,  
Victor.
