Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Is it possible to show/hide fields on a form without changing another field value?

(0) ShareShare
ReportReport
Posted on by 105

I have a column where each option set has two date fields associated with it.

pastedimage1655821818719v1.png

With the amount of option sets it would make for a very bulky form to show the date fields for each one. So ideally, I would like to hide them unless a trigger is activated by the user to show them.

However, I do not want to have to add another field to trigger this (like a boolean) as I have enough fields as it is!

Is it possible to add a button or dropdown using javascript/html to the form the user can select that will how the desired fields? Ideally, it could a label the user can select that would open an element containing the date fields. 

Does anyone know of any resources where I could look at implementing this or have any other suggestions?

  • Suggested answer
    Nettsales Profile Picture
    20 on at
    RE: Is it possible to show/hide fields on a form without changing another field value?

    Could you use Business Rules to hide the date fields unless there is either a value or a specific value in the appropriate Choice field?

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Is it possible to show/hide fields on a form without changing another field value?

    Hi SNAIRR,

    You could add a button to the form by using Ribbon Workbench. And then show/hide your field on the form by JS code of button's command.

    Reference:

    {Know-how} Add a ribbon button using Ribbon WorkBench - Microsoft Dynamics CRM Community

    SetRequiredLevel and Show/Hide field on click of Ribbon button using Java Script – My Learnings (wordpress.com)

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Product updates

Dynamics 365 release plans