Skip to main content
Question

Trouble adding the Middle Name field to the common/form-contact-person/form-contact-person

  • March 30, 2026
  • 2 replies
  • 41 views

Joe Schmucker
Captain II
Forum|alt.badge.img+3

I want to add Middle Name (MidName) field to the common html for the common Contacts thingy.

This is my code.  It publishes without any errors, but the field does not show up.

This is the first time trying to modify a “common” view.  I’m sure something is wrong but I don’t know what.

I was not able to find anything on the web for this specific need.

 

//THIS IS THE TS
import {
PXFieldState,
} from "client-controls";
import { Contact } from "src/screens/common/form-contact-person/form-contact-person";

export interface ExtendedContact extends Contact { }

export class ExtendedContact {
MidName: PXFieldState;
}


//this is the HTML
<template>
<qp-include url="src/screens/common/form-contact-person/form-contact-person">
<field append="#{{fs-id}}" name="MidName" config-allow-edit.bind="true"></field>
</qp-include>
</template>

If anyone has done this already, please let me know what I need to do to fix my code.

Thank you all in advance.

Quick edit...I can add the field on the contacts screen using the screen editor on CR30200 contacts screen, show this is not a show stopper.  I just wanted to be able to deliver a project that doesn’t require the customer do manually add the field.

2 replies

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

Hi ​@Joe Schmucker, I am not sure if what you are attempting to do is possible, as it looks like you are trying to make global changes to a common ts/html?

It looks like the issue may be due to the parameter in the html. From the examples in the documentation, when you override you would need to specify the specific fs-id, instead of just appending to “#{{fs-id}}”. If you were to do it for a specific screen and specify the element you are wanting to append to using the specific identifier instead of the variable, I imagine it should work as expected.
https://help.acumatica.com/(W(28))/Help?ScreenId=ShowWiki&pageid=7d69fd20-b37e-4698-baec-45daa7d40fc5

I am not sure if there is a way to do it globally, but I would be interested to hear about it if it was possible.


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

This is the first time trying to modify a “common” view.

I’m not aware of a way to edit a ‘common’ screen template per-say. You can modify it with a screen extension, but that’s a per-screen change, not a global one.