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 Platform Community / Forums / Power Apps / Parent Error not showi...
Power Apps
Unanswered

Parent Error not showing on form datacard

(0) ShareShare
ReportReport
Posted on by 716

Hello Power Apps Community... and hopefully @RandyHayes if possible.


Hello Randy, 

I hope you're well. I used your Forms video on YouTube, which as I said before is the best, but I'm facing a different challenge at the moment which I hope you could help with please. 


I'm using Dataverse for Teams.
I have a form with many datacards.

Three data cards I've added custom errors, but the rest I want to use the validation errors from the database.

I have a icon that let's me edit or save the form.

I've put some validation on the save icon DisplayMode which is the below:

If(
 (frmMetrics.Mode = FormMode.View || (frmMetrics.Valid && frmMetrics.Unsaved)) And !crdErrorIncidentTime.Visible And !crdErrorResponseTime.Visible And !crdErrorRequest.Visible,
 Edit,
 Disabled
)

 

This works great, but what I'm seeing is, if one of my datacards, which doesn't have a custom error on it, does not have the correct data input, example, a column's maximum value is 5, so I can only put from 0 to 5, it never throws an error.

 

This is because, I believe, the error only fires when I try and save the form to the database. As I'm disabling the save icon, as per formula above, the user can never click the icon and try and save it to the database to receive the error.

 

So my question is, any ideas how to get the database errors to show immediately rather than having to enable the save icon to allow them to save the record? I really don't want to have to add a custom error message on each data card if possible.

 

Thanks very much,

Garry

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @GarryPope 

     

    Yes, the errors from the datasource (such as the max value, etc.) do not reveal themselves until the form is submitted (attempted).

     

    To get what you are looking for prior to submit, you would need to expose the validation formula as you have done for the other columns.  Unfortunately, a lot of the datasourceinfo values are not validated until submit.

     

    However, you can at least utilize the Validate function in the form datacards to detect if values entered are valid.  If not, then your current process for checking the visibility of error indicators would then work fine.

     

    I hope this is helpful for you.

     

  • CU01081947-0 Profile Picture
    716 on at

    Hello @RandyHayes,

     

    You're the best. Thanks so much!

     

    Garry 

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @GarryPope 

    Happy to help!! 🙂

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard