# HELP! Magic Text not working!

**URL:** <https://forum.adalo.com/t/help-magic-text-not-working/25080>\
**Category:** Get Help\
**Created:** [March 25, 2022, 8:51am UTC](https://forum.adalo.com/t/help-magic-text-not-working/25080 "2022-03-25T08:51:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tami](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tami/32/6721_2.png) [@Tami](https://forum.adalo.com/u/Tami)\
**Post date:** [March 25, 2022, 8:51am UTC](https://forum.adalo.com/t/help-magic-text-not-working/25080/1 "2022-03-25T08:51:38Z")

</div>

Hi everyone,

I’m running a custom action in Adalo and to do that I pull in data through magic texts as is the norm but for a particular field, Im unable to do this and the action wont run properly until I manually enter the data.

Can anyone help please, it’s super important.

---

<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:** [March 25, 2022, 9:33am UTC](https://forum.adalo.com/t/help-magic-text-not-working/25080/2 "2022-03-25T09:33:04Z")

</div>

Hey @Tami

It would help a lot if you could provide more information and screenshots.

Simply saying “it doesn’t work” doesn’t explain the problem very well.

Be as detailed as possible so that we can understand what’s happening.

---

<div class="post-metadata">

**Author:** ![Tami](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tami/32/6721_2.png) [@Tami](https://forum.adalo.com/u/Tami)\
**Post date:** [March 25, 2022, 10:10am UTC](https://forum.adalo.com/t/help-magic-text-not-working/25080/3 "2022-03-25T10:10:57Z")

</div>

@Flawless alright, let me explain better.

I’m running a custom action to send money to users. To do that I’ve added all the necessary inputs as seen in the payload below:

![PL](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/7/1/71cbdf0d976803a0c2755764a9de676961dd8240.jpeg)

All the inputs are text except the incoming USDT amount which is a number. I then added all the appropriate values for each of the inputs with Magic Text. See a snippet below:

![SC](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/f/0/f0acc50ae54b6ade15af949608eef1bf31c2eeea.jpeg)

However when I use the Magic Text feature for the Bank code input, the custom action fails to run. I have changed it to be a number input to see if that was the issue but it doesn’t work either. The only thing that works is when I type it out manually as seen in the picture.

Unfortunately, this is not a solution as each user has a different bank code that needs to be used.

I hope this is more explanatory.

---

<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:** [March 25, 2022, 11:10am UTC](https://forum.adalo.com/t/help-magic-text-not-working/25080/4 "2022-03-25T11:10:18Z")

</div>

Sweet, thanks for the info.

I see what’s happening.

You have “Bank code” as a text parameter, **switch it to a number parameter.**

Custom actions are very picky about where the quotation marks go within the body response JSON.

Anytime you have a text parameter, it requires " " around the text. Numbers require no quotation marks.

---

<div class="post-metadata">

**Author:** ![Tami](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tami/32/6721_2.png) [@Tami](https://forum.adalo.com/u/Tami)\
**Post date:** [March 25, 2022, 11:43am UTC](https://forum.adalo.com/t/help-magic-text-not-working/25080/5 "2022-03-25T11:43:29Z")

</div>

I switched it to a number parameter and it still didn’t work unfortunately.

Another issue with the number parameter even is that it removes the zeroes in front of the bank codes which are needed to run this particular API.

---

<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:** [March 25, 2022, 12:16pm UTC](https://forum.adalo.com/t/help-magic-text-not-working/25080/6 "2022-03-25T12:16:31Z")

</div>

If it requires the leading zeroes, you’ll need to add another custom action API call before the current action you’re creating.

“String API \> Padding” is the way to do it. ([https://docs.abracadalo.com/string-api#padding](https://docs.abracadalo.com/string-api#padding))

 ![Screen Shot 2022-03-25 at 6.15.37 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/3/e/3ea95a839123d54ed6efb9c4df19dada17135ff4.png)

You’ll need to sign up at Abracadalo and this API does require a paid subscription.

Add a custom action with this API and use the result as the bank code parameter for the custom action.

---

<div class="post-metadata">

**Author:** ![Tami](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tami/32/6721_2.png) [@Tami](https://forum.adalo.com/u/Tami)\
**Post date:** [March 25, 2022, 4:04pm UTC](https://forum.adalo.com/t/help-magic-text-not-working/25080/7 "2022-03-25T16:04:51Z")

</div>

Thank you. I sorted out a way to add the zeroes to the bank codes but for some reason the custom action doesn’t run properly unless the bank code is typed out.

---

<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:** [March 25, 2022, 4:12pm UTC](https://forum.adalo.com/t/help-magic-text-not-working/25080/8 "2022-03-25T16:12:37Z")

</div>

How’d you do it?

And can you show the action now that you’ve made changes please.

---

<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:** [April 4, 2022, 4:12pm UTC](https://forum.adalo.com/t/help-magic-text-not-working/25080/9 "2022-04-04T16:12:45Z")

</div>

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