web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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,461

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

I have the same question (0)
  • huijij Profile Picture
    19,813 on at

    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.

  • Retha Profile Picture
    1,461 on at

    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?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 88 Super User 2026 Season 1

#2
Sagar Suman Profile Picture

Sagar Suman 72 Super User 2026 Season 1

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 54 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans