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 / Power Apps form for Sh...
Power Apps
Suggested Answer

Power Apps form for SharePoint list conditional check on save

(0) ShareShare
ReportReport
Posted on by
1. Form is submitted with drop down item "referred" selected.
2. Yes/No toggle needs to switch from no to yes if the form is submitted with the "referred" drop down selected and then be disabled permanently. 
 
The toggle is just to show whether or not the form has ever been submitted/saved with "referred" selected and shouldn't switch the toggle value if the drop down is changed to and from "referred" multiple times. 
 
I'm not sure the best way to achieve this so figured I'd reach out. 
Categories:
I have the same question (0)
  • Suggested answer
    Kalathiya Profile Picture
    1,489 Super User 2026 Season 1 on at
    Hello @RM-06012333-0
     
    In this case need to create a flag column (boolean) in your data source (SharePoint List), let’s call it WasEverReferred. We need it toggle shows if the form was ever saved with “referred” selected. Dropdown changes during editing shouldn’t affect it, so we need a separate flag to make it one-way.
     
    Dropdown on Change Property will be:
    If(
        Self.Selected.Value = "referred",
        Set(varSetReferredFlag, true)
    )
    
     
    Form On Success Property:
    If(
        varSetReferredFlag && !Self.LastSubmit.WasEverReferred,
        Patch(
            DataSource, //Replace with you list name
            Self.LastSubmit,
            { WasEverReferred: true }
        )
    );
    Set(varSetReferredFlag,false); //Reset variable
     
    Toggle - Display mode condition: 
    If(
        ThisItem.WasEverReferred = true || varSetReferredFlag = true,
        DisplayMode.Disabled,
        DisplayMode.Edit
    )
    
    📩 Need more help? Mention @Kalathiya anytime!
    ✔️ Don’t forget to Accept as Solution if this guidance worked for you.
    💛 Your Like motivates me to keep helping.
     
     
  • Kalathiya Profile Picture
    1,489 Super User 2026 Season 1 on at
     
    I wanted to follow up and see if this resolved the issue for you. I’m happy to help further if needed.

    📩 Need more help? Mention @Kalathiya anytime!
    ✔️ Don’t forget to Accept as Solution if this guidance worked for you.
    💛 Your Like motivates me to keep helping.

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard