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

Notifications

Announcements

No record found.

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?

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    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)

  • Suggested answer
    Nettsales Profile Picture
    20 on at

    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?

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
iampranjal Profile Picture

iampranjal 51

#2
Martin Dráb Profile Picture

Martin Dráb 39 Most Valuable Professional

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans