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 :
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.

 
I have the same question (0)
  • Raj Borad Profile Picture
    1,524 on at
    Hi,
     
    You can write your logic to find the scenario and the warning message in onmodified method of the customer requisition field in form.
     
  • Karuna Dogra Profile Picture
    on at
    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
    1,524 on at
    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
     

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 512 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 386

#3
Adis Profile Picture

Adis 259 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans