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

Notifications

Announcements

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:
I have the same question (0)
  • Verified answer
    rubin_boer Profile Picture
    4,841 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard