web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : YtOKsbs9crBKcqPY6gAsb+
Power Apps - Building Power Apps
Unanswered

Required Field Validation Discrepancy in Power Apps/SharePoint Integration

Like (0) ShareShare
ReportReport
Posted on 15 Feb 2024 19:51:35 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.

  • MissingLink Profile Picture
    236 on 16 Feb 2024 at 03:55:57
    Re: Required Field Validation Discrepancy in Power Apps/SharePoint Integration

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473