web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to show warning message in crm 2013 without using javascript

(0) ShareShare
ReportReport
Posted on by 2,654

Hi ,

Please tell me how to show a warning message without using javascript and the form should be saved.

*This post is locked for comments

I have the same question (0)
  • Jason M. Cosman Profile Picture
    5,234 Moderator on at

    Hello Ayush;

    Can you provide a bit more information for what you are looking for? Are you trying to show a warning message before the saving of the form? Which event are you looking to tie this warning to?

    Thank You!

  • ayush kar Profile Picture
    2,654 on at

    Hi jason,

     There is a field (option set). when a particular option is choosen then a warning message will show like" you have choosen this option" like alert message in js. But I have to achieve this without using javascript. And if the user is sure to choose that option after warning message then the user should be able to save the record after entering all other field values.

  • Jason M. Cosman Profile Picture
    5,234 Moderator on at

    Thanks for the response Ayush;

    May I ask why without Javascript? I'm not sure it's possible but I will research.

  • Suggested answer
    Jason M. Cosman Profile Picture
    5,234 Moderator on at

    I'd take a look at this post as I believe it explains in details the options that are available to you; and it looks like realistically only field validation is really the choice here and it's more error related.

    onemichaelscott.wordpress.com/.../displaying-messages-to-the-user-in-dynamics-crm-2013

    I hope this helps Ayush

  • Royal King Profile Picture
    27,686 on at

    I don't think you can show warning message without javascript. As you want user to save the data with warning message Business rule is not an option, only option you left with is javascript.

  • ayush kar Profile Picture
    2,654 on at

    its client requirement

  • Community Member Profile Picture
    on at

    Jason Cosman has your answer.  Business Rules are the only way to establish error messages on the form, without scripting.  They are limited to error messages connected to specific fields, rather than the banner-style messages atop the form.  The latter are only achievable with scripting.

  • Suggested answer
    Kamakshi Parate Profile Picture
    on at

    Hello Ayush,

     

    You can create a business rule.

    First, you need to have the privileges necessary to navigate to Settings > Customization. This typically requires the System Administrator or System Customizer security role. To activate a business rule, you must have the Activate Business Rules privilege.

     

    There are four ways you can view, create, or edit business rules:

    Solution > Entity

    From a solution, such as the default solution, you will find a Business Rules node for all entities.

    4382.P1.png

     

    Solution > Entity > Field

    When you view an entity field, you will find a Business Rules node that will show you only the business rules that include this attribute.

    0218.P1.png

     

    Form Editor

    From the form editor, you can use the Business Rules button in the ribbon to show the Business Rules Explorer on the right side. This will show you all business rules that will be applied just for this form.

    If you create a rule from the form editor, the default scope is for that form. More information: Set the scope

    3630.P1.png

     

    Form Editor > Field

    When you view the properties for a field that is used in a form, you will see a Business Rules tab that shows you the business rules that include this attribute.

     

    0121.P1.png

     

    If an existing rule is similar to a rule you want to make, you can open that rule and use the Save As button to copy an existing rule as a starting point for a new rule.

     

    You can set the scope :- In the top right of the form, use the Scope field to set the scope for the rule to All Forms or choose any one of the Main forms. You cannot select multiple specific forms. If you choose All Forms, the rule will be applied to all the Main forms and the Quick Create form, as long as the form includes all the fields referenced by the rule. If you create a new business rule by using the form editor, the default scope is just that form.

    Configure Conditions :- If you want to change an activated business rule, you must deactivate it before you can edit it. To add a condition, click the + icon and a new condition row will appear with default values set. Enter the field name to set the Field, and then choose the appropriate Operator. Operator options will change depending on the data type of the field.

    Conditions are checked whenever any field referenced within the condition changes.

    You can chose three different types of conditions:

    Field

    Use this type to compare the value of one form field with another.

    Value

    Use this type to compare the value of one form field with a value you enter.

    Formula

    This option appears only for numerical or date data types. It does not appear for fields that contain text. Use this type to compare the result of a simple calculation that may use either a value in another form field or a value you enter.

    When you are finished entering or editing the rule, click or tap the check mark icon to save it or the (X) icon to discard changes. To remove a previously saved condition, place your cursor over the condition and click the

    icon.

     

    Configure Actions :- To add an action, click the + icon and you will have the following options:

    Show error message

    Use this action to set an error message on a field if the data within it is not valid. The text you specify for the message will be displayed with an error icon near the field.

     

     

    The record cannot be saved as long as this message is displayed. After the data in the field has been corrected according to the conditions set in your rule, the message will disappear and the record can be saved.

    Set field value

    Choose the Field and then the Type. There are three types:

    Field

    Use this type to set the value of one form field with the value of another field.

    Value

    Use this type to set the value of a form field with a value you enter.

    Formula

    This option appears only for numerical or date data types. It does not appear for fields that contain text. Use this type to set the value to the result of a simple calculation that may use either a value in another form field or a value you enter.

    Set business required

    Use this type to change the requirement level for the field. The options are Not Business Required and Business Required. There is no option to set this to business recommended.

    Set visibility

    Use this type to change whether the field is displayed in the form. The options are Show Field and Hide Field.

    Lock or unlock field

    Use this type to change whether the field is enabled in the form. The options are Lock and Unlock. When the field is locked, people will not be able to edit the value in the field.

    After you have defined an action, you can change the order or delete it by using the options available when you place your cursor over the action.

     

    You can also set Description :- Setting a description is optional. It isn’t displayed anywhere else except in the business rule editor. But it is a good idea to include a description of what the rule is supposed to do and why it has been added.

     

    Hope this helps.

     

    Thanks,

    Kamakshi

    Microsoft Dynamicsâ„¢ CRM Support Engineer

  • Suggested answer
    Goutham A Profile Picture
    2 on at

    you cannot achieve an alert box without javascript. I ahve researche a lot on this before but of no avail. The only option is business rule with inline error message(but doesn't suit you here)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans