Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

How to provide a max length to the product comment on the cart line

(0) ShareShare
ReportReport
Posted on by 1,447

We have a request to limit the number of characters the user can type into the item comment (Retail operation Id 103) text box in the cart.

Any ideas how to do it other than using Javascript to intercept Microsoft's standard code?

Thanks

  • Retha Profile Picture
    1,447 on at
    RE: How to provide a max length to the product comment on the cart line

    No. I want to do exactly what the header says: adding a product comment to the cartline , retail operation ID 103. It writes to the cartline entity's description field and by the time the order is created in HQ it is populated in the SalesLine.CustRef field.

    That text dialog that is opened for operation Id 103, the number of characters must be limited to 50.

    Is there a trigger or something that can be used to add a max length to the text box other than intercepting Microsoft's code with Javascript and force a max length of 50.

    I looked at the custRef field on the salesline in the AOT and it extends from CustRefLine which extends from custRef which extends from PersonName which extends from Name and none of these extended types have its stringsize set to allow for extensibility. So it cannot come from the HQ side to the POS side. I cannot even extend salesline.CustRef to use a custom extended data type that has the string size that we wanted, it is not extendable.

    So how do I do it on the POS side on the cartline for the text dialog that opens for operation id 103?

  • huijij Profile Picture
    19,811 on at
    RE: How to provide a max length to the product comment on the cart line

    Hi Retha,

    Are you considering setting up helptext, which will prompt a message when the mouse moves over a field, only the prompt is not limited.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Zain Mehmood Profile Picture

Zain Mehmood 462 Moderator

#2
Danny Bilodeau Profile Picture

Danny Bilodeau 156 Moderator

#3
Laurens vd Tang Profile Picture

Laurens vd Tang 120 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans