M
M
Misantropolis2018-12-28 03:28:08
1C-Bitrix
Misantropolis, 2018-12-28 03:28:08

CFormOutput::ShowSubmitButton: Bitrix method. Is it possible to change the source code so that the name of the submit button can be changed?

I just have two identical forms in the header and on the page, both with Ajax. The network advises to assign different names to submits to avoid problems.
The source code of the method is here bxapi.ru/src/?module_id=form&name=CFormOutput::Sho...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Marat Garifullin, 2018-12-28
@magarif

Such a self =)
php.net/manual/ru/function.classkit-method-redefine.php

S
serginhold, 2018-12-28
@serginhold

First, you can inherit the class and override the method.
secondly, judging by the code, it is enough to pass $caption to the function when it comes to value.
thirdly, it's just a wrapper over one tag, you can display your own html bypassing the form class.
problems can only be from the curvature of the hands of the developer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question