Skip to main content
Dynamics 365 general forum
Suggested answer

Show and Hide Fields are not working OnSave of the Record

editSubscribe (0) ShareShare
ReportReport
Posted on by
I have the three fields (two of them are duplicate fields on the form - same schema name) on the Form as below. 
 
There is a Event Handler on another field to show and hide the fields with below logic
 
 
If the Multiyear is Set to Yes,
Start Financial Year and End Financial Year and hide the Financial Year.
 
If the Multiyear is Set to No
Financial Year only and hide Start Financial Year and End Financial Year
 
 
It perfectly works on the OnChange of the MultiYear Field change. 
 
As soon as the Save button is clicked, it is showing all the above fields. 
 
Looks like this is a bug. Can anyone experience this Issue
  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju on at
    Show and Hide Fields are not working OnSave of the Record
    Hi Partner,
    Is there an event triggered on record keeping?
    Maybe you can try to make these fields hidden as default settings.

    Then you can use code to show fields based on another field value.

    I hope you can mark my answer verified if it answer your question! If you have any questions, please feel free to contact me.
    Regards,
    Leah

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,045 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,570 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans