Editing viewdefs.php File

I’m trying to add some custom code for the Leads module by editing ‘detailviewdefs.php’ and ‘editviewdefs.php’. No matter what I put in here (or take out), the page displayed doesn’t change. I’ve tried wiping the cache, restarting the web service, etc.

It is like it is getting this info from somewhere else.

Does anyone know what is going on with this?

Make sure that the customisations that you are making are in the /custom/modules/Leads/metadata/ folder location.
Otherwise your changes may not be taken into consideration and won’t be upgrade safe.

If you are making changes in the folder specified above, Make sure that you run a Quick Repair & Rebuild before Clearing your Browser’s Cache.
Then, do a CTRL+F5 to refresh both Cache and the Page.

1 Like

That was the issue. I was modifying the detailviewdefs.php file in the /modules/Leads/metadata folder and not the one in the /custom/modules/Leads/metadata folder.

Thank you so much.