Answer the question
In order to leave comments, you need to log in
Hook on successful form submission?
Hello. Don't tell me? There is an email template in the admin panel for sending an application.
Here is the form sent to the page url
In partners/new/index.php file
...
<?$APPLICATION->IncludeComponent(
"bitrix:form.result.new",
"new_partner",
array(
"CACHE_TIME" => "3600",
"CACHE_TYPE" => "A",
"CHAIN_ITEM_LINK" => "",
"CHAIN_ITEM_TEXT" => "",
"EDIT_URL" => "",
"IGNORE_CUSTOM_TEMPLATE" => "N",
"LIST_URL" => "",
"SEF_MODE" => "N",
"SUCCESS_URL" => "",
"USE_EXTENDED_ERRORS" => "N",
"WEB_FORM_ID" => "3",
"COMPONENT_TEMPLATE" => "new_partner",
"SEF_FOLDER" => "/ua/partners/new/",
"VARIABLE_ALIASES" => array(
"WEB_FORM_ID" => "WEB_FORM_ID",
"RESULT_ID" => "RESULT_ID",
)
),
false
);?>
...
<?
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
?>
<?if ($arResult["isFormErrors"] == "Y"):?><?=$arResult["FORM_ERRORS_TEXT"];?><?endif;?>
<?if ($arResult["isFormErrors"] == "N" && $arResult["isFormNote"] == "Y"){?>
<div class='form-note'>
<span><?=GetMessage("FORM_NOTE")?></span>
</div>
<?}?>
<?if ($arResult["isFormNote"] != "Y")
{
?>
<?=$arResult["FORM_HEADER"]?>
<table>
<?
if (D["isFormDescription"] == "Y" || $arResult["isFormTitle"] == "Y" || $arResult["isFormImage"] == "Y")
{
?>
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question