Personalized Community is here!
Quickly customize your community to find the content you seek.
Check out the latest Sales updates!Learn about the key capabilities and features of Dynamics 365 Sales and experience some of the new features.
Download overview guide | Watch Sales video
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
In order form we have 2 fields called old booking number and new booking number.
In the main order view, we have a button to copy and move the order, on click of that button, a new order will be created with a new order date & details, in that scenario i want to show the old booking number field by hiding the new order number field and when i click on the old order number, i should make the new booking number field visible. How can i implement this.
Thanks in Advance.
Hi Greetings !
if you can post a clear description we can answer you better !
Thanks again Nagaraj for your reply :)
In order view we have 2 fields showing orders numbers like
1) Moved from Order
2) Moved to Order
In the Order view we have a copy and Cancel Order Button on the top, the functionality of that button is when we click on that button, it cancels the current order and copies the order to a new date which we choose from the popup window.
So when we look into the cancelled order the Moved to Order should have the new order number. When we view the newly created order the Moved from Order should have the old order number. So, to avoid further confusions, I wanted to hide the irrelevant fields as both have the same view.
Hope I have explained it clearly now.
So you have two fields Old booking number and new booking number.
so on load you want to hide new booking number if old booking number has data.
but you mention on click of old booking number you want to display new booking number
unfortunately on click of a field we can't trigger any event in CRM , if only the value in that field changes then we can trigger on change event and display the new booking number.
1.write a JS function on load of form : if old booking number contains the data then hide the new booking number.
2. if you are ok to display new booking number on change of old booking number then
write a Business rule , with condition if old booking number contains data then display new booking order.
You could try the following thoughts.
1.When you add a new order from the copy&move button, pass a parameter to the new form to mark this new record which is from "copy&move", and add a new field to get the parameter like "true/false" or ""1/2".
2.Set the new order number field undisplay in default.
3.Add a JS method on old field number onchange event to show new order number.
Attention that we could trigger JS method when you click on the field label, but we could trigger onchange event when you focus on the field value and move your mouse away.
Hope it helps.
Business Applications communities