cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
swetha
Level: Powered On

Display custom validation messages for the required fields

Hi,

 

How to show custom validation message for required field (sharepoint).By default for required fields the validation message will be: "An entry is required or has an invalid value.please correct and try again".how can i change this message.

 

1 ACCEPTED SOLUTION

Accepted Solutions
tj_robinson
Level: Power Up

Re: Display custom validation messages for the required fields

Maybe this had already been pointed out, but you need to replace the semicolons in that formula with commas. Then it will work.

 

If(IsBlank(Parent.Error), "", "Your custom error message")

View solution in original post

8 REPLIES 8
Community Support Team
Community Support Team

Re: Display custom validation messages for the required fields

Hi Swetha,

 

If you mean this error message place:

Capture.PNG

 

Then I'm afaid that this cannot be customized in PowerApps so far. The error code that can be used in formulas to help resolve the error:

 

Capture.PNG

 

For more information, please refer to:
https://powerapps.microsoft.com/en-us/tutorials/function-errors/

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
swetha
Level: Powered On

Re: Display custom validation messages for the required fields

Hi Mona,

 

Thanks for  your response.I mean the same which you are referring to .So, there is no option  to customize the default validation message in power apps.

 

I need one more clarification .can Power apps has the ability to show more than one browse screen and Edit screen of different list of same sharepoint site??

 

 My scenario is : I have 2 buttons View  and Add ,on details screen of  1st list.If i click on View it will navigate to a screen where 2nd list's items(filter will be applied based on user id)  will  be displayed. If i click on Add it will  navigate to another screen,where a New Form of  2nd lists's will  be opened to add item to dat list. Is this possible in power apps??Please assist me.

 

 

Anonymous
Not applicable

Re: Display custom validation messages for the required fields

Hi Swetha,

 

I'm no expert but I believe I'm doing what you're trying to do at the moment.

 

I've got 2 SharePoint lists working as Parent/Child lists. I have a gallery for my parent list and within the Form for the Parent item I have a gallery for the child list.

 

In my case an Order is the parent and the list of products ordered within that order is the child.

jgdes
Level: Power Up

Re: Display custom validation messages for the required fields

Hi Swetha,

I just stumbled upon the same problem. You can fix this by giving the ErrorMessage text field this value for "Text"

 

If(IsBlank(Parent.Error); ""; "Your custom error message")

But you will need to apply this to every Error Message Text field - this is unfortunately not a global option...

MK1
Level: Powered On

Re: Display custom validation messages for the required fields

i'm having the same error. "An entry is required or has an invalid value. Please correct and try again ". Due to this error i'm unable save my records. could you help me how to resololve this error. unable to figureout since weeks.

 

Thanks

MK

tkunohim
Level: Power Up

Re: Display custom validation messages for the required fields

This is what I'm using and it worked Smiley Happy. Hope this help!

 

If(Parent.Error="An entry is required or has an invalid value. Please correct and try again.","Please enter....","")
tj_robinson
Level: Power Up

Re: Display custom validation messages for the required fields

Maybe this had already been pointed out, but you need to replace the semicolons in that formula with commas. Then it will work.

 

If(IsBlank(Parent.Error), "", "Your custom error message")

View solution in original post

RyanXExner
Level: Powered On

Re: Display custom validation messages for the required fields

Thank you!  This did the trick for me.

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 80 members 3,689 guests
Please welcome our newest community members: