#✅ | is there a way to set the load requirement of a text element to letter count?

1 messages · Page 1 of 1 (latest)

somber narwhalBOT
#

Yep! Use the Text Character Count placeholder and feed the same text your element would render. Then add an Is Number loading requirement that checks that placeholder’s value.

Example (for a layout requirement that only shows if the text has ≥ 12 letters):

{"placeholder":"text_character_count","values":{"text":"Your text here or nested placeholders"}}

Put that into an Is Number requirement with Compare Mode = bigger-than-or-equals and Compare With = 12.

More details: Placeholders → Text Character Count

sturdy grotto
#

basically, i'm trying to make a custom action bar, and am using text set to

{"placeholder":"action_bar_message"}

but it returns as " " on screen when there's nothing

i'd like to make it so it only displays if there's more than 4 characters

somber narwhalBOT
# sturdy grotto basically, i'm trying to make a custom action bar, and am using text set to {"p...

Add a loading requirement that checks the length of your text before showing the element:

  1. Right-click the text element → Loading Requirements → add Is Number.
  2. For the “Number” input, insert the Text Character Count placeholder (same content you used in the element), e.g.:
    {"placeholder":"text_character_count","values":{"text":"^^^\n{"placeholder":"action_bar_message"}\n^^^"}}
    
  3. Set the requirement to Compare Mode = bigger-than and Compare With = 4.

Now the text will only appear when the action bar message has more than four characters.
More on the placeholder here: Text Character Count

sturdy grotto
#

uhhh, did not work, i don't think the centering is supposed to be included in the loading requirement

just {"placeholder":"action_bar_message"}?

somber narwhalBOT
# sturdy grotto uhhh, did not work, i don't think the centering is supposed to be included in th...

Right, just use the raw placeholder inside the text_character_count call—no extra centering markers. So the requirement should look like this:

{"placeholder":"text_character_count","values":{"text":{"placeholder":"action_bar_message"}}}

Then in the Is Number requirement set “Compare Mode = bigger-than” and “Compare With = 4”. This way the element stays hidden whenever the action bar text is empty or shorter than five characters.

sturdy grotto
#

oh im actually stupid, action bar message time is a thing

somber narwhalBOT
somber narwhalBOT
#
Thread Marked as Solved

This support thread has been marked as solved by @sturdy grotto.

The AI helper is now disabled, but you can still continue the conversation if needed. Thank you for using our support system!