Skip to main content
Solved

RichText box error: undefined: Cannot read properties of undefined (reading 'getvalue')

  • April 30, 2026
  • 3 replies
  • 45 views

Forum|alt.badge.img

I’ve created a very simple customization that simply attempts to populate a richtext box on a button click.  The box renders as a white area without the richtext box header, which I’m fine with.

I’m getting a “undefined: Cannot read properties of undefined (reading 'getvalue')” message as a popup.  Others have had this in the past (question from two years ago is the same).  I’ve tried the suggested solution without success.

Here is my current ASPX code for the control...

      <pxa:PXRichTextEdit AllowImageEditor="False" AllowInsertParameter="False" AllowLinkEditor="False" AllowNull="True" Required="False" ID="CstPXTextEdit5" runat="server" 
            Style="z-index: 113; border-width: 0px;"
            AllowAttached="true" AllowSearch="true" AllowLoadTemplate="false" AllowSourceMode="true"
            DataField="Answer" Width="800" Height="900">
            <ContentStyle BorderStyle="None" ></ContentStyle>
            <AutoSize Enabled="True" ></AutoSize>
        </pxa:PXRichTextEdit>

I have a zipped customization that shows the error… 


 

Best answer by PSchirf61

The fix, for us, was to turn off AutoSize.

3 replies

Forum|alt.badge.img+4
  • Jr Varsity II
  • April 30, 2026

Hi ​@PSchirf61 ,

I also faced same issue as yours ,used below for richtext field ,

     <px:PXRichTextEdit ID="edBody" runat="server" DataField="UsrBody" Style="border-width: 0px; border-top-width: 1px; width: 100%;"
         AllowAttached="true" AllowSearch="true" AllowLoadTemplate="false" AllowSourceMode="true">
         <AutoSize Enabled="True" MinHeight="216" />
         <LoadTemplate TypeName="PX.SM.SMNotificationMaint" DataMember="Notifications" ViewName="NotificationTemplate" ValueField="notificationID" TextField="Name" DataSourceID="ds" Size="M" />
     </px:PXRichTextEdit>

Hope above helps!!


Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • Answer
  • April 30, 2026

The fix, for us, was to turn off AutoSize.


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • April 30, 2026

Thank you for sharing your solution with the community ​@PSchirf61!