Hello everyone,
I’m asking if someone can help me with this issue. I have custom fields in the Contact tab, which stopped working for me after converting to Modern UI. This is my code, and I’m not sure what’s wrong.
Thanks in advance



Hello everyone,
I’m asking if someone can help me with this issue. I have custom fields in the Contact tab, which stopped working for me after converting to Modern UI. This is my code, and I’m not sure what’s wrong.
Thanks in advance



Best answer by aleksandrsechin
Hi
Your code is almost fine, except that you don’t need to apply a decorator to add custom fields to the grid. Here is a code example that I can confirm works.
import { PXFieldState } from "client-controls";
import { ContactDetail } from "src/screens/CR/common/tabs/tab-contacts/tab-contacts";
export interface ContactDetail_MyProject extends ContactDetail {}
export class ContactDetail_MyProject {
UsrTest: PXFieldState;
}If it doesn’t work in your case, try making some simple changes first to verify that changes are applied at all. This will help rule out issues related to the instance or environment rather than the code itself.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.