Skip to main content
Question

Modern UI Selector Field Not Working (Postal Code)

  • March 24, 2026
  • 4 replies
  • 43 views

Hi Team,

We have modified the Postal Code field using CacheAttached to make it a selector, and it is working fine in Classic UI.

However, in Modern UI it is still behaving like a normal text field.

In the TS file, I added:

@controlConfig({ allowEdit: true })
PostalCode: PXFieldState<PXFieldOptions.CommitChanges>;

But the selector is not getting applied.

Could someone help how to convert Modern UI to support selector fields?

Classic UI

 

Thanks In advance!

4 replies

Forum|alt.badge.img

Hii ​@maneeshau91 , try to add this controlType: "qp-selector" above  @controlConfig({ allowEdit: true })
PostalCode: PXFieldState<PXFieldOptions.CommitChanges>; in ts file 

 

try this way

@fieldConfig({
controlType: "qp-selector",
controlConfig: {
displayMode: 'text',
suggester: { descriptionName: 'CultureReadableName' },
}
})
FormatLocale: PXFieldState;

After adding try to 

Run the following command in the FrontendSources\screen folder of your instance.

“npm run build-dev --- --env customFolder=development screenIds=”


  • Author
  • Freshman I
  • March 24, 2026

@tareshpatil51  
I have added the changes below and ran build dev, but it is still not working.


import {  PXFieldState,  PXFieldOptions , controlConfig} from "client-controls";
import { Address } from "src/screens/common/form-address/form-address";

export interface AddressExt extends Address {}
export class AddressExt {  controlType: "qp-selector"
@controlConfig({ allowEdit: true})
PostalCode: PXFieldState<PXFieldOptions.CommitChanges>;
}

 

Could you please help me understand how default fields can be extended? Also, is it required to make changes in the HTML file?


Forum|alt.badge.img

In Modern UI (client-controls) you extend fields using class extension, not by editing original Address.

import {
PXFieldState,
PXFieldOptions,
controlConfig
} from "client-controls";

import { Address } from "src/screens/common/form-address/form-address";


export class AddressExt extends Address {

@controlConfig({
allowEdit: true
})
PostalCode: PXFieldState<PXFieldOptions.CommitChanges>;

}

No html change needed..!


  • Author
  • Freshman I
  • March 24, 2026

@tareshpatil51 Thanks for response

I tried above code but not works, I am not sure what i am missing.