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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

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

(0) ShareShare
ReportReport
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.
I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 77 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 66 Most Valuable Professional

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 48

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans