How to remove mandatory field in the form?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
13 views
Plz tell me what to change in the code below the fields (Organization, contact person, City, Communication) was optional.
Code in Studio
<?if (!isset($_SERVER['HTTP_X_REQUESTED_WITH']) || empty($_SERVER['HTTP_X_REQUESTED_WITH']) || strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest') {require($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php');$APPLICATION->SetTitle("); global $USER; if ($USER->isAdmin() ) { require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php"); } else { LocalRedirect(SITE_DIR); die(); } } define('NO_AGENT_CHECK', true); define("STOP_STATISTICS", true); require($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php'); ?><?if (!isset($_SERVER['HTTP_X_REQUESTED_WITH']) || empty($_SERVER['HTTP_X_REQUESTED_WITH']) || strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest') {require($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php');global $USER;if ($USER->isAdmin() ) { require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php"); } else { LocalRedirect(SITE_DIR); die(); } } define('NO_AGENT_CHECK', true); define("STOP_STATISTICS", true); require($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php'); ?> To order a calculation of equipmentPlease note!  If You have a specification, please attach a file or an archive file.The file is loaded...
image
Confirm that You are not a robot
<?if (!isset($_SERVER['HTTP_X_REQUESTED_WITH']) || empty($_SERVER['HTTP_X_REQUESTED_WITH']) || strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest') {global $USER;if ($USER->isAdmin() ) {require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/footer.php");}}
by | 13 views

2 Answers

0 like 0 dislike
Remove the * everywhere.
by
0 like 0 dislike
The removal of the span will not help, I suspect that the Ajax form is submitted using javascript, with the help of him and validinputs.
order-form.js we need to see that in this file
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
36,596 users