How to disable navigation on click of Primary column in a Dynamics 365/ Model driven apps view

Hello everyone and welcome to my blog. In today’s blog I will show a no-code approach to disable navigation on Primary column of a table in Dynamics 365 Apps or Model driven apps.

In Model-driven apps, for every table whether standard or custom, there is always a Primary column. And a primary column always show up as Hyperlink in the views.

Below is my custom table – Program with primary column Program Name. As you can see the column is hyperlink and when clicked, it shall take me to a form where I can view or edit record details.

However I had this customer’s requirement to disable navigation on click of Primary column. My customer does not want the column to be clickable.

Sometimes the simplest of the problems can be pretty challenging. Gone are the days where we could think of using some unsupported scripts and stop the navigation on click of hyperlink.

Let’s take a no-code approach for this. To do this, I shall first create a column. Below is the column configuration.

I am creating a column of type Formula and in the formula, I set it’s value to Program Name column. The next step is to just go ahead and add this column to the views.

Below is the output when added the column to a view. I have kept both the original and formula column in the view. Off-course you need to hide the primary column and just keep the formula column in the view.

Wonderful isn’t it? Hope you liked this post. If this post has helped, you can buy me a coffee. Links on right pane.

For similar topics on Microsoft.NET and Power Platform, subscribe to my blog using the Subscribe option on right pane.

You will also like the below posts.

Debajit Dutta
Business Solutions MVP