I
I
Igor2018-04-10 11:09:44
1C-Bitrix
Igor, 2018-04-10 11:09:44

How to add a file to the feedback form in the 1C.Bitrix system?

Tell me how to add a file to the feedback form in the 1C.Bitrix system. Now the form without uploading a file, you need to be able to attach files.
Now the form looks like this:
5acc713d2aacf735669211.png
The code is as follows:

Feedback
<?$APPLICATION->IncludeComponent(
"ma:form",
"template_contact",
Array(
"ACTION_FORM" => "/contacts/",
"ADD_SUBSCRIPTION_USER" => "N",
"AJAX_MODE" => "Y" ,
"AJAX_OPTION_ADDITIONAL" => "",
"AJAX_OPTION_HISTORY" => "N",
"AJAX_OPTION_JUMP" => "N",
"AJAX_OPTION_STYLE" => "Y",
"AREA_FILE_SHOW" => "file",
"COMPONENT_TEMPLATE" => "template_contact",
"COMPOSITE_FRAME_MODE" => "A",
"COMPOSITE_FRAME_TYPE" => "AUTO",
"EMAIL_TO" => "[email protected]",
"EVENT_MESSAGE_ID" => "7",
"FIELD_VALID" => "Y",
"IBLOCK_ID" => "10",
"IBLOCK_TYPE" => "form",
"MESSAGE_RESULT_OK_TEXT" => "Thank you. Your message has been sent.",
"SAVE_TO_IBLOCK" => "Y",
"SEND_EMAIL_FORM" => "Y",
"SEND_EMAIL_FORM_USER" => "N",
"TEXT_BUTTON" => "Submit",
"USE_CAPTCHA" => "COLOR_CAPTCHA",
"USE_FORM_ITEM_ID" => array(0=>"60",1=>"61",2=>"62",3=>" 63",4=>"",5=>"",
"USE_JQUERY" => "N",
"VALID_60" => "",
"VALID_61" => "",
"VALID_62" => "^[0-9a-zA-Z_\\.-][email protected][0-9a-zA-Z\\.-]+\\\\$"
)
);

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