web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Only Showing Words In ...
Power Apps
Answered

Only Showing Words In A Text Input That Are Equal To Word Length Input Number

(0) ShareShare
ReportReport
Posted on by 31

Hi Team,

 

I am needing a little assistance with my formula. I have made a Collection with a bunch of words all with different word Lengths from 1 all the way to 8. I have two input text fields that show a random word within it once a button is pressed. What I am trying to do is only show the words that are equal to the input number of characters within the word. I am also trying to make it add both Input text boxes together based on the character. Please find an example below of what I have done. I can only get the output to show both words combined and it cuts off the second word if it's longer than the value.

 

mholdsworth2022_0-1655480440029.png

 

 

Categories:
  • Verified answer
    rubin_boer Profile Picture
    4,843 Super User 2024 Season 1 on at

    hi @mholdsworth2022 

     

    I dont know if i understand what you asking the right way but you can try this.

     

    Add another Collection

    ClearCollect(
     WordlistWithLen,
     AddColumns(
     Wordlist,
     "Length",
     Len(Value)
     )
    )

    This will give you the word and associated length, i added a wordlist to show the result

    rubin_boer_0-1655487485633.png

    You can filter this list based on the length you select. i will do this with a drop down and i will add a label to show the response.

     

    add a label and set the test as follows:

    Concat(
     Filter(
     WordlistWithLen,
     Length = Dropdown1.SelectedText.Result // in your case this will be the texy box with the length
     ),
     Value,
     " "
    )

    (i chose a dropdown so the user do not enter a length that's not in the wordlist.)

     

    Result

    Peek 2022-06-17 19-42.gif

     

    Hope this he helps,

    R

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard