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 / Grab specific text fro...
Power Apps
Answered

Grab specific text from text input to another textinput

(0) ShareShare
ReportReport
Posted on by 67

Hi PowerApps experts,

 

I am trying to create my app as illustated in the attached picture from my gallary.

 

I really need your help with writing functions in the white colored textinput boxes to grab from the above long string "HS83582 00410040" the first on the left will grab the fisrt 6 craracters after "H" = S83582 and second text input will grab the firt 3 charactars after the the space = 004 and last one to grab the followed 4 charactars = 1004, the last charactar is not wanted.

Given by the three white colored boxes are column in a sharepoint list.

 

Appsforourlife_0-1706645779353.png

I appreciate a ot your help 🙂

Categories:
I have the same question (0)
  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    Hi @Appsforourlife,

     

    Are the values in the TextInput controls currently hardcoded and you wish to change these to functions instead? The code below should do the trick. 😊

     

    //Left TextInput Text property
    Mid(
     //Label1 refers to the control containing the full string value
     Label1.Text,
     //Find the index of H and add 1 to exclude H in the output
     Find("H",Label2.Text) + 1,
     //Return the next 6 characters
     6
    )
    
    //Middle TextInput Text property
    Mid(
     //See comment in code block above
     Label1.Text,
     //Find the index of the first space & add 1 to exclude the space
     Find(" ",Label2.Text) + 1,
     //Return the next 3 characters
     3
    )
    
    //Right TextInput Text property
    Mid(
     //See above
     Label1.Text,
     //Find the index of the middle TextInput value (change name) & skip those characters (+3)
     Find(MiddleTextInput.Text,Label2.Text) + 3,
     //Return the next 4 characters
     4
    )

     

    If this solves your question, would you be so kind as to accept it as a solution.

    Thanks!

  • Appsforourlife Profile Picture
    67 on at

    Hi @LaurensM 

     

    Thank you for the help, It works very well, I am so happy 🙂 thank you again!

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard