Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

on which method should the warning be thrown for a field just entered the value on

(0) ShareShare
ReportReport
Posted on by
Hi Team,
 
I have a requirement, wherein when user is creating a sales order, after selecting the customer account on SalesCreateOrder form. When user enters the Customer requisition as soon as he enters the value in Customer requisition, he should receive a warning message stating ' Customer requisition already exists' (if in case its already exists with any other SO), then its up to user if he still wants to create SO or not.
 
Where should I write the code for this scenario wherein before saving or pressing any button itself warning should be thrown.
 
Please help.

 
  • Raj Borad Profile Picture
    595 on at
    on which method should the warning be thrown for a field just entered the value on
    As you say, you want the warning message as soon as the value is entered or while entering, the system will check the validation on every character you enter in the "Customer requisition". 
    You can only validate after a tab or lose focus of that field.
    You can override the lostfocus or leave methods in the form field
     
  • Karuna Dogra Profile Picture
    on at
    on which method should the warning be thrown for a field just entered the value on
    Hi Raj,
     
    Thank you for responding, if we write on onmodified then we have to either press tab or click anywhere on screen in order to get the warning message. But the question is, is it possible to get the warning message as soon as the value is entered in the field without clicking anywhere on the screen.
     
    Also, once warning is thrown the user must correct the value first to proceed further, how can I make it optional that it should just throw the warning and it should not stop the user to proceed further.
     
    Please help.
  • Raj Borad Profile Picture
    595 on at
    on which method should the warning be thrown for a field just entered the value on
    Hi,
     
    You can write your logic to find the scenario and the warning message in onmodified method of the customer requisition field in form.
     

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,907 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,777 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans