Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Customize & Extend
Answered

Inconsistent error Message location on screen

(1) ShareShare
ReportReport
Posted on by 96

Hi,

I am trying to show a synchronous workflow error message on create of a record. The record is being created using Advanced forms. The message is showing up on the form, but it is showing at a different location compared to the other validation messages (See Screenshot). Is it possible to show the error message from the workflow at the same location as the other validation messages, or as a popup on the screen? 

error.png

Categories:
  • shubham_7 Profile Picture
    110 on at
    Re: Inconsistent error Message location on screen

    Thank You

  • shubham_7 Profile Picture
    110 on at
    Re: Inconsistent error Message location on screen

    Thank you😊

  • Manish R Sharma Profile Picture
    96 on at
    Re: Inconsistent error Message location on screen

    @eugenevanstaden - Tried this out recently and it worked. Thanks a lot !

  • Manish R Sharma Profile Picture
    96 on at
    Re: Inconsistent error Message location on screen

    @eugenevanstaden - Thank you. I will try this out and will let you know how I go.

  • Verified answer
    eugenevanstaden Profile Picture
    424 on at
    Re: Inconsistent error Message location on screen

    @PortalNewbie 

    As the alert item does not have an ID or reference you can use as selector, what I do is return a string as the custom error message (id_plugin_error), which I then use to select and move the item and present a predefined message. 

     

     var alertElement = $("p:contains('id_plugin_error')");
     if (alertElement .length) {
     $(alertElement ).parent("div").remove();
     $("div.tab.clearfix").prepend('<div class="alert red" id="delete-failed" role="alert" tabindex="0"> <div class="cell"> <i class="fa fa-warning"></i> </div> <div class="cell"> <h4>Custom Header</h4> <p>Custom Error message</p></div> </div>');
     }

     


    This is what the error message markup will look like for the Advance form

     

    <p class="text-danger"><span class="fa fa-exclamation-triangle" aria-hidden="true"></span> An unexpected error occurred from ISV code. (ErrorType = ClientError) Unexpected exception from plug-in (Execute): DummyPlugin.ThrowErrorPlugin: System.Exception: This is a dummy error </p>

     


    As compared to the Basic Form which at least have an id of MessagePanel. This is a bit inconsistent and ideally should  be fixed by Microsoft.

    <div id="MessagePanel" class="message alert alert-info alert-danger alert-danger" role="alert">
    		<span id="MessageLabel" tabindex="0"><p class="text-danger"><span class="fa fa-exclamation-triangle" aria-hidden="true"></span> An unexpected error occurred from ISV code. (ErrorType = ClientError) Unexpected exception from plug-in (Execute): DummyPlugin.ThrowErrorPlugin: System.Exception: This is a dummy error</p></span>
    	</div>




  • Manish R Sharma Profile Picture
    96 on at
    Re: Inconsistent error Message location on screen

    hi @eugenevanstaden can you give me some pointers on how to move it to another location ? I am not very familiar with DOM manipulation.

  • eugenevanstaden Profile Picture
    424 on at
    Re: Inconsistent error Message location on screen

    There are differences in how the error messages are generated in Advance forms vs Basic forms, especially errors triggered from plugins/workflow etc.

    On the advance form it sits outside but you can try and move it with JS to the preferred location.

    I raised this sometime back also.
    Plugin Error message differ between Webform and En... - Power Platform Community (microsoft.com)

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 69 Super User 2025 Season 1

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 49 Most Valuable Professional

#3
Jon Unzueta Profile Picture

Jon Unzueta 43

Featured topics