V
V
VicTHOR2020-07-26 00:23:51
1C-Bitrix
VicTHOR, 2020-07-26 00:23:51

Why is there no order comment validation and how to implement it?

The sale.order.ajax component has a separate function for the "order comment" block - editPropsComment.
It simply creates a few DOM nodes that are added to the passed block (PROPS by default).
Because a comment is not a property, it has no settings in the admin panel and there is no validation function. In this connection, the question is, is the textarea of ​​comments protected from attacks by some settings from the core for the form, for example? Or do I need to somehow write data validation, or use some built-in functions other than user props validation?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question