How to fix the Unyson Contact Form
This guide shows how to fix Unyson contact form quick and easy just with the help of several lines of code. The article contains detailed instructions and screenshots about how to perform all these steps. We hope you’ll enjoy it!
The main file in which you need to make the necessary changes locates in /framework-customizations/extensions/forms/extensions/contact-forms/views/ and has name form.php This file in all themes has a very similar structure and sometimes and in your theme this file may differs a bit a little from the example below.
But this will not prevent us from making the necessary changes, since we have prepared for you a clear and precise description of all necessary steps.
In order to fix this issue, please open in any code editor file form.php which locates in /framework-customizations/extensions/forms/extensions/contact-forms/views/
and click CTRL + F. The search box will appear. Input in this search box the following expression: go approximately to the line # 46. Comment it using // symbols:
//$form_tags['select'] = true;
Then add before the line $38:
$form_tags['form']['data-fw-form-id'] = true;
this code:
$form_tags['form']['method'] = true;
$form_tags['form']['action'] = true;
$form_tags['form']['class'] = true;
The final result will have this code:
$form_tags['form']['method'] = true;
$form_tags['form']['action'] = true;
$form_tags['form']['class'] = true;
$form_tags['form']['data-fw-form-id'] = true;
$form_tags['form']['data-fw-ext-forms-type'] = true;
$form_tags['form']['data-pick-time'] = true;
$form_tags['form']['data-pick-date'] = true;
$form_tags['form']['data-language'] = true;
$form_tags['form']['data-fw-form-id'] = true;
$form_tags['textarea']['placeholder'] = true;
$form_tags['textarea']['required'] = true;
$form_tags['select'] = array(
'type' => true,
'id' => true,
'class' => true,
'name' => true,
'value' => true,
'placeholder' => true,
'required' => true,
'data-pick-time' => true,
'data-pick-date' => true,
'data-language' => true,
'data-constraint' => true,
);
$form_tags['option']['value'] = true;
Then save changes and clear cache in a browser.
asdsadsad
Leave a Reply
Want to join the discussion?Feel free to contribute!