Text inputs for paragraphs

Hello all

i am building an app with Adalo as my front end and Xano as backend, i am on troubleshooting stage and i have encountered a problem. I cant press ENTER while typing in text inputs because it will make JSON invalid. in my app i have to put JOB DESCRIPTIONS and they will not look good if they are in just a straight line. and also in my Xano POST method i cant put multi line text inputs because it will make JSON invalid.

In short i cant post paragraphs, i can only post single line texts

any thoughts how to make it work

I can send carriage returns from an adalo text input (multiline) to Xano. So I think your problem lies elsewhere. Post the errors you get from Xano endpoint history.


pressing ENTER key is just making JSON invalid

error message it shows is INVALID KEY FORMAT

Looks like you are testing in the Xano Run / Debug window. Try it from an Adalo preview of your app and you won’t have a problem.

In Adalo it just does not do any action whenever i have used ENTER or RETURN key, if text inputs are in single line it would go through. it does not show any error when does not go through

If you DM me the preview link to your app and a screenshot of the screen it occurs on I will take a look.

I’ve had a look. Seems like you are running a ‘Custom action’ to send your message (add record to Xano). Line breaks in custom action are discussed on the forum and are promblematic. I would use ‘Create’ record from within Adalo instead. Then in the function stack of Xano carry out any additional process if you need.

Alternatively you could apply a filter on the Xano side to the inputs. The line break is being sent as \n e.g. This text\nNew line

I think the video on this post would help

Hope this helps.

This JSON format is correct:
{
“message_text”: “hello world\nmultiple line”,
“sender_id”: 0,
“receiver_id”: 0,
“conversations_id”: 0,
“image_url”: “”
}

Hi Simonas,
how would this be implemented in adalo? because we do not know when end user want to change paragraph

Hi rozza, i implemented same thing and it is working. i am encoding from adalo and decoding in xano, but i am encoding with third party API and i need subscription for this.
what would be the best way to encode in adalo?

You don’t need to encode. Why are you using a custom action? That’s an inefficient step. “Create” is perfectly capable of doing this.

I’m not a Xano user, let alone a fan. When the backend, and in this case Xano, can’t handle basic things like split(“\n”), it really seems absurd. Even simple data transformations become unnecessarily complex.
Xano seems to be trying to be “user-friendly”, but when such things don’t work intuitively, it’s just more headaches for the end user. Firebase is much more rationally designed in this respect - everything is JSON and you can easily manipulate data without any nonsense.
Sometimes it seems that some “no-code” backends deliberately complicate simple things in order to sell “pro” features later. :man_shrugging:

1 Like

Hello Rozza and Simonas
Multi text inputs are working now. Thanks for your replies, it could be impossible without your help guys.
solution- In XANO i just changed the text format of column to Plaintext and i used query parameters instead of JSON in xano post custom action (adalo side)

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