Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Unanswered

How to hide fields of another entity on custom button click on primary entity form.

Posted on by
Hello Team,
 
I have a requirement to create a new custom button on Contact record Form. On click, it should open the quick create form of Appointment entity.
I also want to hide certain fields in appointment form on create.
 
The same Quick Create form opens from other location as well but I don't want these changes there.
These fields should only be hidden from the custom button click.
 
I am able to open the QC form on button click but the primaryControl is passing the context of the account and so my code doesn't work to set the appointment fields.
If I write the code on load of the form then it will apply on all the forms; Is there any way in UCI to identify whether the form is opened from button click or other places.
 
Can you suggest the approach how I get this requirement fulfilled?
 
Any help would be appreciated.
 
Thanks in advance.

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,537 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,520 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans