Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on 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
    Miguel_Pst on at
    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
    shoog 2,164 on at
    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
    Nogueira1306 7,390 on at
    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard