N
N
newked2021-12-12 17:29:22
1C-Bitrix
newked, 2021-12-12 17:29:22

How to implement a redirect in 1C-Bitrix after submitting a form?

Hello world!
Guys, the question is simple, but I don't know how best to implement a redirect to a specific page after submitting a form, for example, "order a call".

My forms are implemented through the bitrix:iblock.element.add.form component. As far

as I understand, it is possible to insert the following condition into the component template:

if (strlen($arResult["MESSAGE"]) > 0):?>
    $url = 'https://site.ru/blablabla/';
    LocalRedirect($url);
<? endif ?>


Is it possible to do so?! Or is there a more elegant and already provided by the system solution in Bitrix?

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