Skip to main content
Question

Modern UI – Grid Field Not Showing & Required Field Asterisk Missing

  • April 13, 2026
  • 2 replies
  • 151 views

Hi Team

I have a couple of observations related to the Modern UI behavior:

1. Dead Stock Screen – Grid Field (Item Class)
In the Dead Stock screen, we added the Item Class field at the grid level using ASPX customization, and it works correctly in the Classic UI.
However, in Modern UI, the field is not appearing.
I attempted to extend the TypeScript file as below, but unable to extended.

import { PXFieldState, PXFieldOptions, placeAfterProperty } from "client-controls";
import { INDeadStockEnqResult } from "src/screens/IN/IN405500/IN405500";

export interface INDeadStockEnqResultExt extends INDeadStockEnqResult { }

export class INDeadStockEnqResult {
@placeAfterProperty("InventoryItem__Descr")
InventoryItem__ItemClassID: PXFieldState<PXFieldOptions.CommitChanges>;
}

2. Stock Item Screen – Required Field Asterisk
In the Stock Item screen, we have a custom header-level field marked as Required = true in the DAC.
In Classic UI → the red asterisk (*) is displayed correctly
In Modern UI → the asterisk is not showing
I also reviewed base HTML and TS files but couldn’t find any explicit configuration for rendering required fields.

Could someone help on this?

Thanks, in advance!

2 replies

Forum|alt.badge.img+2
  • Jr Varsity I
  • April 13, 2026

Hi ​@vkumar68 

1) What do you mean, “Unable to add”? I have added a similar field on an EnqResult grid screen in modern ui, and was able to do so using html and ts files. Is your ts file saving and publishing or being pushed to the system via the command line successfully? One thing could be an issue with the @placeafterproperty if there is a bug, you could try just using html to add the field instead, similar to:
<field name="DACNAME_FieldName" after="#grid"></field>

2) I believe the asterisk on required fields is driven by the pxdefault attribute, not required = true in the pxuifield attribute. I would suggest using the pxdefault attribute if you want to see the asterisk.

 


arpine08
Jr Varsity I
Forum|alt.badge.img+1
  • Jr Varsity I
  • April 13, 2026

Hi ​@vkumar68,

Regarding point 2, I suggest adding config-required.bind="true" to the HTML for the OPS Product Type field to display the red asterisk (*).

HTML (example):

<template>
<field before="#fsColumnB-Filter [name='SelectBy']"
name="UsrOPSProductType"
config-required.bind="true">
</field>
</template>

Result:

 

Regarding point 1, your TypeScript code correctly displays the Item Class; I have made small changes by adding @columnConfig:

TS:

import { PXFieldState, placeAfterProperty, columnConfig, } from "client-controls";
import { INDeadStockEnqResult, } from "src/screens/IN/IN405500/IN405500";

export interface INDeadStockEnqResultExt extends INDeadStockEnqResult { }
export class INDeadStockEnqResultExt {
@placeAfterProperty("InventoryItem__Descr")
@columnConfig({ width: 200, allowUpdate: false })
InventoryItem__ItemClassID: PXFieldState;
}

Result: