Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans