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

Notifications

Announcements

No record found.

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,457

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,811 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,457 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 288 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 178 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 116 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans