Skip to main content
Answer

Adding modern UI field to Business Account header

  • April 16, 2025
  • 2 replies
  • 66 views

darylbowman
Captain II
Forum|alt.badge.img+15

I need to add a field to Business Accounts header. I've extended the view responsible. I am trying to add the field in my html extension file. According to the help(step 4), I should structure it like this:

<template>
<field
after="#fsItemDefaults-General [name='ItemType']"
name="UsrRepairItem"
></field>
</template>

Here is the CR303000.ts file for BAccount header:

I would like to add my field after ‘Status’.

Here’s my attempt:

<template>
<field // Here is my 'selector' statement
after="#phF_form_PXLayoutRule#0 [name='Status']"
name="XServices"
></field>
</template>

Attempting to build results in: SyntaxError: '#phF_form_PXLayoutRule#0 [name='Status']' is not a valid selector

I’m wondering if the ‘id’ containing ‘#’ (like the ‘selector’ statements starts with) is causing this error.

 

Best answer by Dmitrii Naumov

@darylbowman 

Yes, I’ve checked and the # symbol is the issue here. 

I’ll report the bug to engineering 

2 replies

Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • Answer
  • April 16, 2025

@darylbowman 

Yes, I’ve checked and the # symbol is the issue here. 

I’ll report the bug to engineering 


darylbowman
Captain II
Forum|alt.badge.img+15
  • Author
  • April 16, 2025

Thanks!