M
M
Michael2018-07-14 12:50:53
1C-Bitrix
Michael, 2018-07-14 12:50:53

How to set form id for a web form in Bitrix?

How can I enable form id for web forms in Bitrix? By default, forms only have a form name.
The file .../form.result.new/component.php contains the following lines:

...
"FORM_HEADER" => sprintf( // form header (<form> tag and hidden inputs)
"<form name=\"%s\" action=\"%s\" method=\"%s\" enctype=\"multipart/form-data\">"
...

But adding id=\"%s\" to the string does nothing, the id is not added. Where to look?

Answer the question

In order to leave comments, you need to log in

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

I don’t know who is still using this outdated Bitrix shnyaga. Use this
https://dev.1c-bitrix.ru/user_help/components/cont...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question