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 Apps
Unanswered

Change Button Text

(0) ShareShare
ReportReport
Posted on by 5,325 Super User 2025 Season 2

I have SubmitButton1.

I have NewRoleForm.

I have Gallery1.

The DefaultMode of NewRoleForm is Edit.

I have an arrow in Gallery1 that contains EditForm(NewRoleForm).

I have a New Role button that has NewForm(NewRoleForm).

I want the text in SubmitButton1 to change when the form mode changes; If form mode is Edit submit button should show 'Submit Update', if form mode New submit button should show 'Submit New Role'.

I've tried the following, but it didn't change the text.
     - If(NewRoleForm.DisplayMode.Edit,"Submit Update","Submit New Role")


Categories:
I have the same question (0)
  • Verified answer
    Rajkumar_M Profile Picture
    3,741 Super User 2025 Season 2 on at

    Hi @Phineas 

     

    The formula you provided seems to be almost correct, but you need to use NewRoleForm.Mode instead of NewRoleForm.DisplayMode.Edit to determine the current mode of the form.

     

    Try this

     

    If(
    NewRoleForm.Mode = FormMode.Edit,
    "Submit Update", "Submit New Role"
    )

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation. 

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard