Warning message on lightning new record page

All we need is an easy explanation of the problem, so here it is.

I want to show a warning message on lightning standard record creation page. If that is not possible is there a way to create a lightning component with all fields on standard page layout ?

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

This is all dependent on what you are trying to achieve because I’d say using the standard layout is always the way to go unless you have a deal-breaker requirement.

  1. If this is for validation on data they’re entering – use validation
    rules
  2. If this is to serve as some sort of reminder before they even start
    filling out values – consider just adding a read-only field that you
    can put at the top that states this.

For point #2, it can even include an Image if you want it to be more visually prominent as noted here. Any text field that is read only can have a “default” value to get a point across if that’s all that is needed.

Otherwise, I’d say creating a lightning component for this does not seem like a good reason to go this route. However, just to answer the question – there is the record-edit-form or record-view-form.

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply