Skip to main content
Question

Display Custom Fields in the Modern UI

  • March 16, 2026
  • 1 reply
  • 14 views

Forum|alt.badge.img

I intend to add custom fields to the Payment Summary section of the AR302000 screen. These two custom fields are intended to appear specifically when the View is set to "Document." However, it seems that despite having implemented the code, the changes are not taking effect. Where might the issue lie?

1 reply

Forum|alt.badge.img+1
  • Varsity I
  • March 16, 2026

Hello ​@AndrewZ ,

Please try this code.

.ts file.

import {ARPayment} from  "src/screens/AR/AR302000/AR302000";

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

export interface AR302000_BZTest extends ARPayment { }
export class AR302000_BZTest {
AAA: PXFieldState<PXFieldOptions.CommitChanges>
BBB: PXFieldState<PXFieldOptions.CommitChanges>
}

.html file

<template>
<field name="AAA" after="#columnThird-Document FIELD[name='CuryConsolidateChargeTotal']"></field>
<field name="BBB" after="#columnThird-Document FIELD[name='AAA']"></field>
</template>

Regards,
Vard