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 / PowerApps Best Practis...
Power Apps
Answered

PowerApps Best Practise for Implementing workflow

(0) ShareShare
ReportReport
Posted on by 4

What is the best practise/more efficient in terms of updating field properties within Canvas Apps. Using one formula (from one property) to alter two different field properties or have two different fields with two different properties to implement the change

e.g.

I have two fields A & B. the OnChange property of A could be used to patch a record and then an If statement could run to assess the value and change the Display property of field B accordingly (Patch and If statement within OnChange of field A); or Field A OnChange could Patch the record and the If statement could reside within the Display property of field B (Field A OnChange Patch, Field B Display propery If Statement). Which is better?

Categories:
I have the same question (0)
  • Verified answer
    KvB1 Profile Picture
    1,596 on at

    How would you change the display property of B using an if statement in field A? You would need to set a variable, and then use that variable on the relevant property of field B. You would save yourself a variable if you just have the display property for B reside in B.

  • CreativeSCot Profile Picture
    2 on at

    In the situation below you have two fields within a gallery item with data source="DataSource" 
    Field A is a dropdown and field B is a text input which can variably change display state based off the column decision (Field A allows selection of the decision).

    Option1
    OnChange Property of Field A :


    Patch(DataSource,ThisItem,{'Decision':FieldA.Selected.Value});

    If(ThisItem.'Decision'<>[@'Decision Choices'].Successful,

    FieldB.DisplayMode=DisplayMode.View, FieldB.DisplayMode=DisplayMode.Edit

    )

     

    Vs

    Option 2

     

    OnChange Property of Field A :


    Patch(DataSource,ThisItem,{'Decision':FieldA.Selected.Value});

     

    Display Property of Field B:

    If(ThisItem.'Decision'<>[@'Decision Choices'].Successful, DisplayMode.View, DisplayMode.Edit

    )

  • PowerNapper Profile Picture
    4 on at

    You make a good point..... Silly question. Option 1 doesn't work. 

  • KvB1 Profile Picture
    1,596 on at

    Working with variables can also be smart, for example if you can set them to true or false depending on the text property of an input field.

     

    That way you can also reuse them for If statements, visibility etc

     

    For just one control it seems wasteful

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard