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

Community site session details

Session Id : R/PRVV5gnjNVC72MponKzK
Power Apps - Building Power Apps
Answered

Replace "/" and remove spaces at the end on textinput on a form

Like (0) ShareShare
ReportReport
Posted on 3 Sep 2021 10:41:58 by

Hello all, 

 

I've a power app with a form and I need to replace "/" by "-" and also remove spaces at the end and beggining from a text input before suubmiting, because it it contains something like that it will break my flows when creating sharepoint folders with that title.

 

I know how to do both actions but the issue is that to do this needs to be on the update property from the data card and it looks I can't put more that one formula on that property.

 

Miguel_Pst_0-1630665696331.png

 

 

Someone can help me?

  • Miguel_Pst Profile Picture
    on 03 Sep 2021 at 13:41:35
    Re: Replace "/" and remove spaces at the end on textinput on a form

    Hey Gonçalo, 

     

    If you're working with a form I don't know why but it doesn't apply those updates. needs to be on the update of the datacard

  • Verified answer
    shoog Profile Picture
    2,164 on 03 Sep 2021 at 11:07:09
    Re: Replace "/" and remove spaces at the end on textinput on a form

    You need to use the output of the first expression as input of the second expression, so you get just one output value for the update property.

    Substitute(TrimEnds(TitleDataCardValue.Text), "/", "-")

     

  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on 03 Sep 2021 at 10:44:45
    Re: Replace "/" and remove spaces at the end on textinput on a form

    Hey! Why don´t you insert that before submiting the form?

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete