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 / Required Field Validat...
Power Apps
Unanswered

Required Field Validation Discrepancy in Power Apps/SharePoint Integration

(0) ShareShare
ReportReport
Posted on by

I have developed an application for tracking inventory of motors. It consists of three main screens: a search screen, an add screen, and an update screen.

On the add and update screens, there are forms linked to a SharePoint list containing all the motor information. Each form includes a submit button, allowing users to either add a new motor to the list or submit changes to an existing motor entry. I've configured the submit buttons with a DisplayMode property set to "If(frmXXXMotor.Valid, DisplayMode.Edit, DisplayMode.Disabled)". This setting is supposed to prevent users from submitting changes or adding a motor to the list if there are still empty required fields in the form.

While this functionality works flawlessly during the preview in Power Apps, embedding the application on our SharePoint site presents a different situation. In this environment, the app fails to check for required fields in the Edit motor form, allowing users to submit changes even when required fields are empty.

I've taken several troubleshooting steps, including ensuring that the embedded app is the most recently published version and testing it across multiple browsers. However, the issue persists, indicating a potential discrepancy in how the app behaves within the SharePoint environment compared to its behavior during preview in Power Apps.

add screen.JPG
edit form SP.JPG
edit form PA.JPG
Categories:
I have the same question (1)
  • MissingLink Profile Picture
    236 on at

    Hi @lorumIpsum2024 

    Just looking at your screenshots, each of them seem to have different compulsory field requirements.  (See the red asterisks)

    This indicates to me that either you have added the fields manually and then linked to a field or perhaps they are pointing to a collection (where the field are not compulsory ?   Its hard to say exactly.

    To get around the problem, I'd suggest that on the Submit button, you put some code to ensure that the compulsory fields are not blank.   Something like: 

    If(IsBlank(DataCardValue54.Text) Or IsBlank(DataCardValue55.Text) Or IsBlank(DataCardValue56.Text), Notify("A Field is Blank",NotificationType.Warning), Notify("Success", SubmitForm(FormNameHere)))

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard