Skip to main content
Community site session details

Community site session details

Session Id : 6dE4uhhoyqcNkTYQnEyU4Q
Power Pages - Power Apps Portals
Unanswered

Inline error/validation messages for Popup Modal in PowerApps Portals

Like (0) ShareShare
ReportReport
Posted on 22 Apr 2022 03:14:23 by 47

Hi All,

I am using D365 Online and Power Apps Portals

How to add "Inline error/Validation messages in Popup Modal window" in Power Apps Portals, Is it achievable, if yes any links please. I am using Basic forms in Portal

 

Regards,

Babu

  • Narendra Sunkara Profile Picture
    47 on 04 May 2022 at 00:20:29
    Re: Inline error/validation messages for Popup Modal in PowerApps Portals

    Hi @Fubar ,

    I am still struggling to find the solution for this.

    I am trying different ways here, How to read control id and Value using JQuery in PopUp window 

     

    Regards,

    Babu

     

  • Narendra Sunkara Profile Picture
    47 on 26 Apr 2022 at 03:11:32
    Re: Inline error/validation messages for Popup Modal in PowerApps Portals

    Hi @Fubar ,

     

    Thanks for your quick reply.

    If you can provide any code example or any links on this, It would be great.

    I am bit new to PowerApps Portals.

     

    Regards,

    Babu

  • Fubar Profile Picture
    8,047 Super User 2025 Season 2 on 26 Apr 2022 at 03:01:46
    Re: Inline error/validation messages for Popup Modal in PowerApps Portals

    Not sure exactly how you would achieve that, as out of the box the Submit evaluates the Page_Validators object and you still will want to stop the submit if one one of the validations is false,

     

    One hack, may be to hide the DIV (id = ValidationSummaryEntityFormControl_EntityFormView) that the error messages are written in and then take its contents and reposition it with JQuery - the existing error message links  that are written into that DIV contain the field_name_label and error text in each anchor tag.

     

  • Narendra Sunkara Profile Picture
    47 on 26 Apr 2022 at 02:03:09
    Re: Inline error/validation messages for Popup Modal in PowerApps Portals

    Hi @Fubar 

    Thanks for your reply.

    I am using Basic form to display on button click as a Popup window.

    In Popup window, I do have some required fields, currently OOB, it is showing all the validation messages on top of the screen, when I click on Submit button. But I want those validation messages to be displayed next to each label of the control. This is my requirement.

     

    Regards,

    Babu

  • Fubar Profile Picture
    8,047 Super User 2025 Season 2 on 26 Apr 2022 at 01:50:53
    Re: Inline error/validation messages for Popup Modal in PowerApps Portals

    It depends on what you mean by "Inline" and may also depend on exactly where you are calling it from.  I am assuming you mean from a (Web) Basic Form

     

    If you mean adding your own code for something like onchange of a field then something like added to the Custom JavaScript field on the Additional Settings Tab on the Form definition

     

    $( document ).ready(function() {
     $( "#new_name" ).change(function() {
     alert( "Handler for .change() called." );
     });
    });
    
    // where 'new_name' is the dataverse field name 

     

     See the following link (also covers validation on Submit)

    https://docs.microsoft.com/en-us/power-apps/maker/portals/configure/add-custom-javascript#form-fields;

     

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#2
Lucas001 Profile Picture

Lucas001 48 Super User 2025 Season 2

#3
KevinGador Profile Picture

KevinGador 44 Super User 2025 Season 2

Loading started
Loading complete