M
M
Mikhail2018-10-16 09:56:10
1C-Bitrix
Mikhail, 2018-10-16 09:56:10

How is the form for adding an element processed in Bitrix and how to intercept it?

Description:
Wrote a template for the iblock.element.add.form component
But there are 2 nuances:
1. when adding an element with a name that already exists, it displays an error that the character code is the same (it is formed via js by the BX.translit function) .
2. when adding an element, it is necessary that parameters be added to the trade catalog for this element.
I see the solution as follows:
you need to write some kind of handler that will be processed after pressing "save", which will add an entry for the trade catalog and check the symbolic code for the presence of a similar one, and, if necessary, add numbering.
this handler must be between form submission and processing.
Tell me how to do it easier, preferably without ajax.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ainur Valiev, 2018-10-16
@vaajnur

OnBeforeIBlockElementAdd

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question