S
S
sergeyviktorovich2021-01-21 17:05:33
1C-Bitrix
sergeyviktorovich, 2021-01-21 17:05:33

How to know the event when submitting the form and change the message after submitting?

after submitting the form, I just didn’t find such a message in the form no action

600989a382c3b402679740.png

where is this test phrase, where can I change it?

<?php if (isset($arResult['success']) && isset($arResult['success']['message'])) {
                            echo $arResult['success']['message'];
                        } ?>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Emelyanov, 2021-01-21
@babarun

Where is this test phrase, where can I change it?

  1. Open project in PhpStorm
  2. Ctrl+Shift+F
  3. Your order has been placed

R
Roman Nesterenko, 2021-01-22
@nester_87

$arResult['success']['message'] - this is the work of the component, look for the components, maybe Web Forms, while there in the settings, there is little introductory information. From what you have shown, it is clear that this is the result of the component, and there is no point in looking for the code, this value lies in the settings in the admin panel, which means in the database

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question