cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ericonline
Community Champion
Community Champion

Parent.error?

What is "parent.error" in regards to form validation? 

 

The default error message that is auto-generated when creating a PowerApp from a Sharepoint form has its Text property set to parent.error. 

 

2018-06-07_9-56-28.png

 

Unfortunately, the parent (Data Card?) has no "error" property

2018-06-07_10-00-03.png

 

And neither does the Form: 

2018-06-07_10-00-29.png

 

Where is the mysterious .error property? I'm also interested in ErrorKind. I see the docs on them but cant seem to find them inside my app anywhere. 

13 REPLIES 13

Hm... did I answer my own question? 

 

Is the " " item being seen by PowerApps as an actual VALUE, whereas a true blank would be seen as NULL and cause the form to error when submitted?

Hm... tested another method by: 

 

Creating a Collection that starts OnVisible: 

 

ClearCollect(colItems,
{item1: " ", 
item2: "Completed", 
item3: "Completed w/ Comments", 
item4: "Exceptions Taken"})

Set the dropdown's Items to colItems. 

 

Still when submitting the form, there is no error. 

 

I then deleted the custom card and added it to the form again. The error message popped right up because the form was in Error State. Hence the original problem:

 

WHAT DOES THE FORM ERROR TRIGGER THAT IS INVISIBLE / CAN'T BE RECREATED ONCE THE ERROR MESSAGE AND STAR ARE DELETED FROM A STOCK DATA CARD? UGH. 🙂

ltnguyener
Frequent Visitor

I can't believe it's been 2 years and the best answer is "redo the datacard".

Blytheee
Advocate I
Advocate I

I know this is a really old post but for anyone else browsing through trying to fix this I have a really easy solution.

 

Change the Text property to:

If(Len(Parent.Error) > 0 , "YOUR TEXT HERE")

 

Matt

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,012)