Skip to main content
Question

Custom Field- CustomerID Not Rendering as Hyperlink in Modern UI Customization

  • August 27, 2025
  • 2 replies
  • 55 views

Forum|alt.badge.img

 

Hi,

I’m trying to make the CustomerID selector field display as a hyperlink in the Modern UI, but it is not showing up as expected. Below is my code snippet. Could anyone help me identify what I might be missing or how to make it work?

Code:

DAC:

#region CustomerID
[PXDBInt()]
[PXUIField(DisplayName = "Customer ID",Enabled =false)]
[PXSelector(typeof(Search<BAccount.bAccountID,Where<BAccount.type,Equal<BAccountType.customerType>>>),
    SubstituteKey = typeof(BAccount.acctCD),
    DescriptionField = typeof(BAccount.acctName))]
public virtual int? CustomerID { get; set; }
public abstract class customerID : PX.Data.BQL.BqlInt.Field<customerID> { }
#endregion

HTML:

<template>
                    <field name="CustomerID" config-allow-edit.bind="true"></field>

</template>

I also tried by adding config-type.bind="1"

 

Thanks in advance.

Premalatha N

2 replies

Hi ​@premalathan35 
try below code, it may help you.
<field name="CustomerID" control-type="qp-link-editor"></field>


Forum|alt.badge.img+3

You have to specify allowEdit: true in the controlConfig decorator for the field in TypeScript:

@controlConfig({ allowEdit: true })
CustomerID: PXFieldState;