How? to set the maximum character length in a paragraph to 20 characters and end with a 3 dot period

1 Like

help? I need the blocks and work in the dynamic text card cardview component and set the length of the paragraph

Hi @dohop96
Please show your efforts and also search in the community.

I searched, but there is no way to set the length of the dynamic text element

And what you have tried yet

Sorry but if you are asking for blocks then you should show blocks.
If you don’t know how to download all blocks then right click in blocks area and you will see an option for it.

Try this one:


Download and upload it in your project.
In your case:-
text = ‘your text’
length = 20
char = …

1 Like

I tried with this block and cut it short to 20 characters, but I cut 50 characters with an error

What error did you get?
Is string’s length smaller than 50?

Segment: Start (1) + length (50) - 1 exceeds text length (38).
Note: You will not see another error reported for 5 seconds.

Error says it all
Text length is smaller than 50 so you can not limit it to 50.
Last index should be smaller than text’s length.

I got muddy from the airtable database, because an instance title doesn’t take 20 characters and it has an error and can’t be displayed?

Sorry but can you elaborate it more.

Use if block
That is length is less than 20 than directly show it else
Use that segment block

I really design, like creating blocks is a problem for me

I develop on Kodular, thunkable, block code …

A very good way to learn App Inventor or Kodular is to read the free Inventor’s Manual here in the AI2 free online eBook App Inventor 2 Book: Create Your Own Android Apps … the links are at the bottom of the Web page. The book ‘teaches’ users how to program with AI2 blocks.
There is a free programming course here Course In A Box and the aia files for the projects in the book are here: App Inventor 2 Book: Create Your Own Android Apps
How to do a lot of basic things with App Inventor are described here: How do you...? .

Also do the tutorials Tutorials for MIT App Inventor to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor


As you know, I know nothing about English

and there was not much time to search for documents, or read them