Version Description
- Fixed: Select, radio, checkbox fields.
Download this release
Release Info
Developer | 10web |
Plugin | Form Maker by WD – user-friendly drag & drop Form Builder plugin |
Version | 1.14.1 |
Comparing to | |
See all releases |
Code changes from version 1.14.0 to 1.14.1
- admin/models/Manage_fm.php +61 -4
- form-maker.php +3 -3
- frontend/models/form_maker.php +109 -12
- frontend/views/form_maker.php +61 -4
- readme.txt +4 -1
admin/models/Manage_fm.php
CHANGED
@@ -1101,7 +1101,6 @@ class FMModelManage_fm extends FMAdminModel {
|
|
1101 |
'w_allow_other',
|
1102 |
'w_allow_other_num',
|
1103 |
'w_value_disabled',
|
1104 |
-
'w_use_for_submission',
|
1105 |
'w_choices_value',
|
1106 |
'w_choices_params',
|
1107 |
'w_class',
|
@@ -1122,13 +1121,34 @@ class FMModelManage_fm extends FMAdminModel {
|
|
1122 |
'w_allow_other',
|
1123 |
'w_allow_other_num',
|
1124 |
'w_value_disabled',
|
1125 |
-
'w_use_for_submission',
|
1126 |
'w_choices_value',
|
1127 |
'w_choices_params',
|
1128 |
'w_class',
|
1129 |
);
|
1130 |
}
|
1131 |
if ( strpos($temp, 'w_limit_choice') > -1 ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1132 |
$params_names = array(
|
1133 |
'w_field_label_size',
|
1134 |
'w_field_label_pos',
|
@@ -1187,6 +1207,7 @@ class FMModelManage_fm extends FMAdminModel {
|
|
1187 |
$param['w_choices_checked'][$key] = '';
|
1188 |
}
|
1189 |
}
|
|
|
1190 |
$rep = '<div id="wdform_field' . $id . '" type="type_checkbox" class="wdform_field" style="display: table-cell;">' . $arrows . '<div align="left" id="' . $id . '_label_sectionform_id_temp" class="' . $param['w_class'] . '" style="display: ' . $display_label . '; width: ' . $param['w_field_label_size'] . 'px;"><span id="' . $id . '_element_labelform_id_temp" class="label" style="vertical-align: top;">' . $label . '</span><span id="' . $id . '_required_elementform_id_temp" class="required" style="vertical-align: top;">' . $required_sym . '</span></div><div align="left" id="' . $id . '_element_sectionform_id_temp" class="' . $param['w_class'] . '" style="display: ' . $param['w_field_label_pos'] . ';"><input type="hidden" value="type_checkbox" name="' . $id . '_typeform_id_temp" id="' . $id . '_typeform_id_temp"><input type="hidden" value="' . $param['w_required'] . '" name="' . $id . '_requiredform_id_temp" id="' . $id . '_requiredform_id_temp"><input type="hidden" value="' . $param['w_hide_label'] . '" name="' . $id . '_hide_labelform_id_temp" id="' . $id . '_hide_labelform_id_temp"/><input type="hidden" value="' . $param['w_randomize'] . '" name="' . $id . '_randomizeform_id_temp" id="' . $id . '_randomizeform_id_temp"><input type="hidden" value="' . $param['w_allow_other'] . '" name="' . $id . '_allow_otherform_id_temp" id="' . $id . '_allow_otherform_id_temp"><input type="hidden" value="' . $param['w_allow_other_num'] . '" name="' . $id . '_allow_other_numform_id_temp" id="' . $id . '_allow_other_numform_id_temp"><input type="hidden" value="' . $param['w_rowcol'] . '" name="' . $id . '_rowcol_numform_id_temp" id="' . $id . '_rowcol_numform_id_temp"><input type="hidden" value="' . $param['w_limit_choice'] . '" name="' . $id . '_limitchoice_numform_id_temp" id="' . $id . '_limitchoice_numform_id_temp"><input type="hidden" value="' . $param['w_limit_choice_alert'] . '" name="' . $id . '_limitchoicealert_numform_id_temp" id="' . $id . '_limitchoicealert_numform_id_temp"><input type="hidden" value="' . $param['w_field_option_pos'] . '" id="' . $id . '_option_left_right"><input type="hidden" value="' . $param['w_value_disabled'] . '" name="' . $id . '_value_disabledform_id_temp" id="' . $id . '_value_disabledform_id_temp"><input type="hidden" value="' . $param['w_use_for_submission'] . '" name="' . $id . '_use_for_submissionform_id_temp" id="' . $id . '_use_for_submissionform_id_temp"><div style="display: table;"><div id="' . $id . '_table_little" style="display: table-row-group;" ' . ($param['w_flow'] == 'hor' ? 'for_hor="' . $id . '_hor"' : '') . '>';
|
1191 |
if ( $param['w_flow'] == 'hor' ) {
|
1192 |
$j = 0;
|
@@ -1347,13 +1368,32 @@ class FMModelManage_fm extends FMAdminModel {
|
|
1347 |
'w_allow_other',
|
1348 |
'w_allow_other_num',
|
1349 |
'w_value_disabled',
|
1350 |
-
'w_use_for_submission',
|
1351 |
'w_choices_value',
|
1352 |
'w_choices_params',
|
1353 |
'w_class',
|
1354 |
);
|
1355 |
}
|
1356 |
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1357 |
$params_names = array(
|
1358 |
'w_field_label_size',
|
1359 |
'w_field_label_pos',
|
@@ -1410,6 +1450,7 @@ class FMModelManage_fm extends FMAdminModel {
|
|
1410 |
$param['w_choices_checked'][$key] = '';
|
1411 |
}
|
1412 |
}
|
|
|
1413 |
$rep = '<div id="wdform_field' . $id . '" type="type_radio" class="wdform_field" style="display: table-cell;">' . $arrows . '<div align="left" id="' . $id . '_label_sectionform_id_temp" class="' . $param['w_class'] . '" style="display: ' . $display_label . '; width: ' . $param['w_field_label_size'] . 'px;"><span id="' . $id . '_element_labelform_id_temp" class="label" style="vertical-align: top;">' . $label . '</span><span id="' . $id . '_required_elementform_id_temp" class="required" style="vertical-align: top;">' . $required_sym . '</span></div><div align="left" id="' . $id . '_element_sectionform_id_temp" class="' . $param['w_class'] . '" style="display: ' . $param['w_field_label_pos'] . ';"><input type="hidden" value="type_radio" name="' . $id . '_typeform_id_temp" id="' . $id . '_typeform_id_temp"><input type="hidden" value="' . $param['w_required'] . '" name="' . $id . '_requiredform_id_temp" id="' . $id . '_requiredform_id_temp"><input type="hidden" value="' . $param['w_hide_label'] . '" name="' . $id . '_hide_labelform_id_temp" id="' . $id . '_hide_labelform_id_temp"/><input type="hidden" value="' . $param['w_randomize'] . '" name="' . $id . '_randomizeform_id_temp" id="' . $id . '_randomizeform_id_temp"><input type="hidden" value="' . $param['w_allow_other'] . '" name="' . $id . '_allow_otherform_id_temp" id="' . $id . '_allow_otherform_id_temp"><input type="hidden" value="' . $param['w_allow_other_num'] . '" name="' . $id . '_allow_other_numform_id_temp" id="' . $id . '_allow_other_numform_id_temp"><input type="hidden" value="' . $param['w_rowcol'] . '" name="' . $id . '_rowcol_numform_id_temp" id="' . $id . '_rowcol_numform_id_temp"><input type="hidden" value="' . $param['w_field_option_pos'] . '" id="' . $id . '_option_left_right"><input type="hidden" value="' . $param['w_value_disabled'] . '" name="' . $id . '_value_disabledform_id_temp" id="' . $id . '_value_disabledform_id_temp"><input type="hidden" value="' . $param['w_use_for_submission'] . '" name="' . $id . '_use_for_submissionform_id_temp" id="' . $id . '_use_for_submissionform_id_temp"><div style="display: table;"><div id="' . $id . '_table_little" style="display: table-row-group;" ' . ($param['w_flow'] == 'hor' ? 'for_hor="' . $id . '_hor"' : '') . '>';
|
1414 |
if ( $param['w_flow'] == 'hor' ) {
|
1415 |
$j = 0;
|
@@ -1563,13 +1604,28 @@ class FMModelManage_fm extends FMAdminModel {
|
|
1563 |
'w_choices_disabled',
|
1564 |
'w_required',
|
1565 |
'w_value_disabled',
|
1566 |
-
'w_use_for_submission',
|
1567 |
'w_choices_value',
|
1568 |
'w_choices_params',
|
1569 |
'w_class',
|
1570 |
);
|
1571 |
}
|
1572 |
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1573 |
$params_names = array(
|
1574 |
'w_field_label_size',
|
1575 |
'w_field_label_pos',
|
@@ -1620,6 +1676,7 @@ class FMModelManage_fm extends FMAdminModel {
|
|
1620 |
$param['w_choices_checked'][$key] = '';
|
1621 |
}
|
1622 |
}
|
|
|
1623 |
$rep = '<div id="wdform_field' . $id . '" type="type_own_select" class="wdform_field" style="display: table-cell;">' . $arrows . '<div align="left" id="' . $id . '_label_sectionform_id_temp" class="' . $param['w_class'] . '" style="display: ' . $display_label . '; width: ' . $param['w_field_label_size'] . 'px;"><span id="' . $id . '_element_labelform_id_temp" class="label" style="vertical-align: top;">' . $label . '</span><span id="' . $id . '_required_elementform_id_temp" class="required" style="vertical-align: top;">' . $required_sym . '</span></div><div align="left" id="' . $id . '_element_sectionform_id_temp" class="' . $param['w_class'] . '" style="display: ' . $param['w_field_label_pos'] . '; "><input type="hidden" value="type_own_select" name="' . $id . '_typeform_id_temp" id="' . $id . '_typeform_id_temp"><input type="hidden" value="' . $param['w_hide_label'] . '" name="' . $id . '_hide_labelform_id_temp" id="' . $id . '_hide_labelform_id_temp"/><input type="hidden" value="' . $param['w_required'] . '" name="' . $id . '_requiredform_id_temp" id="' . $id . '_requiredform_id_temp"><input type="hidden" value="' . $param['w_value_disabled'] . '" name="' . $id . '_value_disabledform_id_temp" id="' . $id . '_value_disabledform_id_temp"><input type="hidden" value="' . $param['w_use_for_submission'] . '" name="' . $id . '_use_for_submissionform_id_temp" id="' . $id . '_use_for_submissionform_id_temp"><select id="' . $id . '_elementform_id_temp" name="' . $id . '_elementform_id_temp" onchange="set_select(this)" style="width: ' . $param['w_size'] . 'px;" ' . $param['attributes'] . ' disabled>';
|
1624 |
foreach ( $param['w_choices'] as $key => $choice ) {
|
1625 |
$where = '';
|
1101 |
'w_allow_other',
|
1102 |
'w_allow_other_num',
|
1103 |
'w_value_disabled',
|
|
|
1104 |
'w_choices_value',
|
1105 |
'w_choices_params',
|
1106 |
'w_class',
|
1121 |
'w_allow_other',
|
1122 |
'w_allow_other_num',
|
1123 |
'w_value_disabled',
|
|
|
1124 |
'w_choices_value',
|
1125 |
'w_choices_params',
|
1126 |
'w_class',
|
1127 |
);
|
1128 |
}
|
1129 |
if ( strpos($temp, 'w_limit_choice') > -1 ) {
|
1130 |
+
$params_names = array(
|
1131 |
+
'w_field_label_size',
|
1132 |
+
'w_field_label_pos',
|
1133 |
+
'w_field_option_pos',
|
1134 |
+
'w_hide_label',
|
1135 |
+
'w_flow',
|
1136 |
+
'w_choices',
|
1137 |
+
'w_choices_checked',
|
1138 |
+
'w_rowcol',
|
1139 |
+
'w_limit_choice',
|
1140 |
+
'w_limit_choice_alert',
|
1141 |
+
'w_required',
|
1142 |
+
'w_randomize',
|
1143 |
+
'w_allow_other',
|
1144 |
+
'w_allow_other_num',
|
1145 |
+
'w_value_disabled',
|
1146 |
+
'w_choices_value',
|
1147 |
+
'w_choices_params',
|
1148 |
+
'w_class',
|
1149 |
+
);
|
1150 |
+
}
|
1151 |
+
if ( strpos($temp, 'w_use_for_submission') > -1 ) {
|
1152 |
$params_names = array(
|
1153 |
'w_field_label_size',
|
1154 |
'w_field_label_pos',
|
1207 |
$param['w_choices_checked'][$key] = '';
|
1208 |
}
|
1209 |
}
|
1210 |
+
$param['w_use_for_submission'] = isset($param['w_use_for_submission']) ? $param['w_use_for_submission'] : 'no';
|
1211 |
$rep = '<div id="wdform_field' . $id . '" type="type_checkbox" class="wdform_field" style="display: table-cell;">' . $arrows . '<div align="left" id="' . $id . '_label_sectionform_id_temp" class="' . $param['w_class'] . '" style="display: ' . $display_label . '; width: ' . $param['w_field_label_size'] . 'px;"><span id="' . $id . '_element_labelform_id_temp" class="label" style="vertical-align: top;">' . $label . '</span><span id="' . $id . '_required_elementform_id_temp" class="required" style="vertical-align: top;">' . $required_sym . '</span></div><div align="left" id="' . $id . '_element_sectionform_id_temp" class="' . $param['w_class'] . '" style="display: ' . $param['w_field_label_pos'] . ';"><input type="hidden" value="type_checkbox" name="' . $id . '_typeform_id_temp" id="' . $id . '_typeform_id_temp"><input type="hidden" value="' . $param['w_required'] . '" name="' . $id . '_requiredform_id_temp" id="' . $id . '_requiredform_id_temp"><input type="hidden" value="' . $param['w_hide_label'] . '" name="' . $id . '_hide_labelform_id_temp" id="' . $id . '_hide_labelform_id_temp"/><input type="hidden" value="' . $param['w_randomize'] . '" name="' . $id . '_randomizeform_id_temp" id="' . $id . '_randomizeform_id_temp"><input type="hidden" value="' . $param['w_allow_other'] . '" name="' . $id . '_allow_otherform_id_temp" id="' . $id . '_allow_otherform_id_temp"><input type="hidden" value="' . $param['w_allow_other_num'] . '" name="' . $id . '_allow_other_numform_id_temp" id="' . $id . '_allow_other_numform_id_temp"><input type="hidden" value="' . $param['w_rowcol'] . '" name="' . $id . '_rowcol_numform_id_temp" id="' . $id . '_rowcol_numform_id_temp"><input type="hidden" value="' . $param['w_limit_choice'] . '" name="' . $id . '_limitchoice_numform_id_temp" id="' . $id . '_limitchoice_numform_id_temp"><input type="hidden" value="' . $param['w_limit_choice_alert'] . '" name="' . $id . '_limitchoicealert_numform_id_temp" id="' . $id . '_limitchoicealert_numform_id_temp"><input type="hidden" value="' . $param['w_field_option_pos'] . '" id="' . $id . '_option_left_right"><input type="hidden" value="' . $param['w_value_disabled'] . '" name="' . $id . '_value_disabledform_id_temp" id="' . $id . '_value_disabledform_id_temp"><input type="hidden" value="' . $param['w_use_for_submission'] . '" name="' . $id . '_use_for_submissionform_id_temp" id="' . $id . '_use_for_submissionform_id_temp"><div style="display: table;"><div id="' . $id . '_table_little" style="display: table-row-group;" ' . ($param['w_flow'] == 'hor' ? 'for_hor="' . $id . '_hor"' : '') . '>';
|
1212 |
if ( $param['w_flow'] == 'hor' ) {
|
1213 |
$j = 0;
|
1368 |
'w_allow_other',
|
1369 |
'w_allow_other_num',
|
1370 |
'w_value_disabled',
|
|
|
1371 |
'w_choices_value',
|
1372 |
'w_choices_params',
|
1373 |
'w_class',
|
1374 |
);
|
1375 |
}
|
1376 |
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
1377 |
+
$params_names = array(
|
1378 |
+
'w_field_label_size',
|
1379 |
+
'w_field_label_pos',
|
1380 |
+
'w_field_option_pos',
|
1381 |
+
'w_hide_label',
|
1382 |
+
'w_flow',
|
1383 |
+
'w_choices',
|
1384 |
+
'w_choices_checked',
|
1385 |
+
'w_rowcol',
|
1386 |
+
'w_required',
|
1387 |
+
'w_randomize',
|
1388 |
+
'w_allow_other',
|
1389 |
+
'w_allow_other_num',
|
1390 |
+
'w_value_disabled',
|
1391 |
+
'w_choices_value',
|
1392 |
+
'w_choices_params',
|
1393 |
+
'w_class',
|
1394 |
+
);
|
1395 |
+
}
|
1396 |
+
if ( strpos($temp, 'w_use_for_submission') > -1 ) {
|
1397 |
$params_names = array(
|
1398 |
'w_field_label_size',
|
1399 |
'w_field_label_pos',
|
1450 |
$param['w_choices_checked'][$key] = '';
|
1451 |
}
|
1452 |
}
|
1453 |
+
$param['w_use_for_submission'] = isset($param['w_use_for_submission']) ? $param['w_use_for_submission'] : 'no';
|
1454 |
$rep = '<div id="wdform_field' . $id . '" type="type_radio" class="wdform_field" style="display: table-cell;">' . $arrows . '<div align="left" id="' . $id . '_label_sectionform_id_temp" class="' . $param['w_class'] . '" style="display: ' . $display_label . '; width: ' . $param['w_field_label_size'] . 'px;"><span id="' . $id . '_element_labelform_id_temp" class="label" style="vertical-align: top;">' . $label . '</span><span id="' . $id . '_required_elementform_id_temp" class="required" style="vertical-align: top;">' . $required_sym . '</span></div><div align="left" id="' . $id . '_element_sectionform_id_temp" class="' . $param['w_class'] . '" style="display: ' . $param['w_field_label_pos'] . ';"><input type="hidden" value="type_radio" name="' . $id . '_typeform_id_temp" id="' . $id . '_typeform_id_temp"><input type="hidden" value="' . $param['w_required'] . '" name="' . $id . '_requiredform_id_temp" id="' . $id . '_requiredform_id_temp"><input type="hidden" value="' . $param['w_hide_label'] . '" name="' . $id . '_hide_labelform_id_temp" id="' . $id . '_hide_labelform_id_temp"/><input type="hidden" value="' . $param['w_randomize'] . '" name="' . $id . '_randomizeform_id_temp" id="' . $id . '_randomizeform_id_temp"><input type="hidden" value="' . $param['w_allow_other'] . '" name="' . $id . '_allow_otherform_id_temp" id="' . $id . '_allow_otherform_id_temp"><input type="hidden" value="' . $param['w_allow_other_num'] . '" name="' . $id . '_allow_other_numform_id_temp" id="' . $id . '_allow_other_numform_id_temp"><input type="hidden" value="' . $param['w_rowcol'] . '" name="' . $id . '_rowcol_numform_id_temp" id="' . $id . '_rowcol_numform_id_temp"><input type="hidden" value="' . $param['w_field_option_pos'] . '" id="' . $id . '_option_left_right"><input type="hidden" value="' . $param['w_value_disabled'] . '" name="' . $id . '_value_disabledform_id_temp" id="' . $id . '_value_disabledform_id_temp"><input type="hidden" value="' . $param['w_use_for_submission'] . '" name="' . $id . '_use_for_submissionform_id_temp" id="' . $id . '_use_for_submissionform_id_temp"><div style="display: table;"><div id="' . $id . '_table_little" style="display: table-row-group;" ' . ($param['w_flow'] == 'hor' ? 'for_hor="' . $id . '_hor"' : '') . '>';
|
1455 |
if ( $param['w_flow'] == 'hor' ) {
|
1456 |
$j = 0;
|
1604 |
'w_choices_disabled',
|
1605 |
'w_required',
|
1606 |
'w_value_disabled',
|
|
|
1607 |
'w_choices_value',
|
1608 |
'w_choices_params',
|
1609 |
'w_class',
|
1610 |
);
|
1611 |
}
|
1612 |
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
1613 |
+
$params_names = array(
|
1614 |
+
'w_field_label_size',
|
1615 |
+
'w_field_label_pos',
|
1616 |
+
'w_hide_label',
|
1617 |
+
'w_size',
|
1618 |
+
'w_choices',
|
1619 |
+
'w_choices_checked',
|
1620 |
+
'w_choices_disabled',
|
1621 |
+
'w_required',
|
1622 |
+
'w_value_disabled',
|
1623 |
+
'w_choices_value',
|
1624 |
+
'w_choices_params',
|
1625 |
+
'w_class',
|
1626 |
+
);
|
1627 |
+
}
|
1628 |
+
if ( strpos($temp, 'w_use_for_submission') > -1 ) {
|
1629 |
$params_names = array(
|
1630 |
'w_field_label_size',
|
1631 |
'w_field_label_pos',
|
1676 |
$param['w_choices_checked'][$key] = '';
|
1677 |
}
|
1678 |
}
|
1679 |
+
$param['w_use_for_submission'] = isset($param['w_use_for_submission']) ? $param['w_use_for_submission'] : 'no';
|
1680 |
$rep = '<div id="wdform_field' . $id . '" type="type_own_select" class="wdform_field" style="display: table-cell;">' . $arrows . '<div align="left" id="' . $id . '_label_sectionform_id_temp" class="' . $param['w_class'] . '" style="display: ' . $display_label . '; width: ' . $param['w_field_label_size'] . 'px;"><span id="' . $id . '_element_labelform_id_temp" class="label" style="vertical-align: top;">' . $label . '</span><span id="' . $id . '_required_elementform_id_temp" class="required" style="vertical-align: top;">' . $required_sym . '</span></div><div align="left" id="' . $id . '_element_sectionform_id_temp" class="' . $param['w_class'] . '" style="display: ' . $param['w_field_label_pos'] . '; "><input type="hidden" value="type_own_select" name="' . $id . '_typeform_id_temp" id="' . $id . '_typeform_id_temp"><input type="hidden" value="' . $param['w_hide_label'] . '" name="' . $id . '_hide_labelform_id_temp" id="' . $id . '_hide_labelform_id_temp"/><input type="hidden" value="' . $param['w_required'] . '" name="' . $id . '_requiredform_id_temp" id="' . $id . '_requiredform_id_temp"><input type="hidden" value="' . $param['w_value_disabled'] . '" name="' . $id . '_value_disabledform_id_temp" id="' . $id . '_value_disabledform_id_temp"><input type="hidden" value="' . $param['w_use_for_submission'] . '" name="' . $id . '_use_for_submissionform_id_temp" id="' . $id . '_use_for_submissionform_id_temp"><select id="' . $id . '_elementform_id_temp" name="' . $id . '_elementform_id_temp" onchange="set_select(this)" style="width: ' . $param['w_size'] . 'px;" ' . $param['attributes'] . ' disabled>';
|
1681 |
foreach ( $param['w_choices'] as $key => $choice ) {
|
1682 |
$where = '';
|
form-maker.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Form Maker
|
4 |
* Plugin URI: https://10web.io/plugins/wordpress-form-maker/?utm_source=form_maker&utm_medium=free_plugin
|
5 |
* Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
|
6 |
-
* Version: 1.14.
|
7 |
* Author: 10Web Form Builder Team
|
8 |
* Author URI: https://10web.io/plugins/?utm_source=form_maker&utm_medium=free_plugin
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -104,8 +104,8 @@ final class WDFM {
|
|
104 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
105 |
$this->front_urls = $this->get_front_urls();
|
106 |
$this->main_file = plugin_basename(__FILE__);
|
107 |
-
$this->plugin_version = '1.14.
|
108 |
-
$this->db_version = '2.14.
|
109 |
$this->menu_postfix = ($this->is_free == 2 ? '_fmc' : '_fm');
|
110 |
$this->plugin_postfix = ($this->is_free == 2 ? '_fmc' : '');
|
111 |
$this->menu_slug = 'manage' . $this->menu_postfix;
|
3 |
* Plugin Name: Form Maker
|
4 |
* Plugin URI: https://10web.io/plugins/wordpress-form-maker/?utm_source=form_maker&utm_medium=free_plugin
|
5 |
* Description: This plugin is a modern and advanced tool for easy and fast creating of a WordPress Form. The backend interface is intuitive and user friendly which allows users far from scripting and programming to create WordPress Forms.
|
6 |
+
* Version: 1.14.1
|
7 |
* Author: 10Web Form Builder Team
|
8 |
* Author URI: https://10web.io/plugins/?utm_source=form_maker&utm_medium=free_plugin
|
9 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
104 |
$this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
|
105 |
$this->front_urls = $this->get_front_urls();
|
106 |
$this->main_file = plugin_basename(__FILE__);
|
107 |
+
$this->plugin_version = '1.14.1';
|
108 |
+
$this->db_version = '2.14.1';
|
109 |
$this->menu_postfix = ($this->is_free == 2 ? '_fmc' : '_fm');
|
110 |
$this->plugin_postfix = ($this->is_free == 2 ? '_fmc' : '');
|
111 |
$this->menu_slug = 'manage' . $this->menu_postfix;
|
frontend/models/form_maker.php
CHANGED
@@ -3021,13 +3021,33 @@ class FMModelForm_maker {
|
|
3021 |
'w_allow_other',
|
3022 |
'w_allow_other_num',
|
3023 |
'w_value_disabled',
|
3024 |
-
'w_use_for_submission',
|
3025 |
'w_choices_value',
|
3026 |
'w_choices_params',
|
3027 |
'w_class',
|
3028 |
);
|
3029 |
}
|
3030 |
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3031 |
$params_names = array(
|
3032 |
'w_field_label_size',
|
3033 |
'w_field_label_pos',
|
@@ -3067,11 +3087,35 @@ class FMModelForm_maker {
|
|
3067 |
'w_allow_other',
|
3068 |
'w_allow_other_num',
|
3069 |
'w_value_disabled',
|
3070 |
-
'w_use_for_submission',
|
3071 |
'w_choices_value',
|
3072 |
'w_choices_params',
|
3073 |
'w_class',
|
3074 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3075 |
}
|
3076 |
|
3077 |
/* For own select only */
|
@@ -3085,11 +3129,28 @@ class FMModelForm_maker {
|
|
3085 |
'w_choices_checked',
|
3086 |
'w_choices_disabled',
|
3087 |
'w_value_disabled',
|
3088 |
-
'w_use_for_submission',
|
3089 |
'w_choices_value',
|
3090 |
'w_choices_params',
|
3091 |
'w_class',
|
3092 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3093 |
}
|
3094 |
|
3095 |
foreach ( $params_names as $params_name ) {
|
@@ -3159,7 +3220,6 @@ class FMModelForm_maker {
|
|
3159 |
'w_allow_other',
|
3160 |
'w_allow_other_num',
|
3161 |
'w_value_disabled',
|
3162 |
-
'w_use_for_submission',
|
3163 |
'w_choices_value',
|
3164 |
'w_choices_params',
|
3165 |
'w_class',
|
@@ -3180,15 +3240,13 @@ class FMModelForm_maker {
|
|
3180 |
'w_allow_other',
|
3181 |
'w_allow_other_num',
|
3182 |
'w_value_disabled',
|
3183 |
-
'w_use_for_submission',
|
3184 |
'w_choices_value',
|
3185 |
'w_choices_params',
|
3186 |
'w_class',
|
3187 |
);
|
3188 |
}
|
3189 |
|
3190 |
-
|
3191 |
-
if ( strpos($temp, 'w_limit_choice') > -1 ) {
|
3192 |
$params_names = array(
|
3193 |
'w_field_label_size',
|
3194 |
'w_field_label_pos',
|
@@ -3198,8 +3256,6 @@ class FMModelForm_maker {
|
|
3198 |
'w_choices',
|
3199 |
'w_choices_checked',
|
3200 |
'w_rowcol',
|
3201 |
-
'w_limit_choice',
|
3202 |
-
'w_limit_choice_alert',
|
3203 |
'w_required',
|
3204 |
'w_randomize',
|
3205 |
'w_allow_other',
|
@@ -3230,11 +3286,35 @@ class FMModelForm_maker {
|
|
3230 |
'w_allow_other',
|
3231 |
'w_allow_other_num',
|
3232 |
'w_value_disabled',
|
3233 |
-
'w_use_for_submission',
|
3234 |
'w_choices_value',
|
3235 |
'w_choices_params',
|
3236 |
'w_class',
|
3237 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3238 |
}
|
3239 |
|
3240 |
/* For own select only */
|
@@ -3248,11 +3328,28 @@ class FMModelForm_maker {
|
|
3248 |
'w_choices_checked',
|
3249 |
'w_choices_disabled',
|
3250 |
'w_value_disabled',
|
3251 |
-
'w_use_for_submission',
|
3252 |
'w_choices_value',
|
3253 |
'w_choices_params',
|
3254 |
'w_class',
|
3255 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3256 |
}
|
3257 |
|
3258 |
foreach ( $params_names as $params_name ) {
|
@@ -3261,7 +3358,7 @@ class FMModelForm_maker {
|
|
3261 |
$temp = $temp[1];
|
3262 |
}
|
3263 |
|
3264 |
-
$use_for_submission = $param['w_use_for_submission'];
|
3265 |
|
3266 |
return $use_for_submission;
|
3267 |
}
|
3021 |
'w_allow_other',
|
3022 |
'w_allow_other_num',
|
3023 |
'w_value_disabled',
|
|
|
3024 |
'w_choices_value',
|
3025 |
'w_choices_params',
|
3026 |
'w_class',
|
3027 |
);
|
3028 |
}
|
3029 |
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
3030 |
+
$params_names = array(
|
3031 |
+
'w_field_label_size',
|
3032 |
+
'w_field_label_pos',
|
3033 |
+
'w_field_option_pos',
|
3034 |
+
'w_hide_label',
|
3035 |
+
'w_flow',
|
3036 |
+
'w_choices',
|
3037 |
+
'w_choices_checked',
|
3038 |
+
'w_rowcol',
|
3039 |
+
'w_required',
|
3040 |
+
'w_randomize',
|
3041 |
+
'w_allow_other',
|
3042 |
+
'w_allow_other_num',
|
3043 |
+
'w_value_disabled',
|
3044 |
+
'w_choices_value',
|
3045 |
+
'w_choices_params',
|
3046 |
+
'w_class',
|
3047 |
+
);
|
3048 |
+
}
|
3049 |
+
|
3050 |
+
if ( strpos($temp, 'w_use_for_submission') > -1 ) {
|
3051 |
$params_names = array(
|
3052 |
'w_field_label_size',
|
3053 |
'w_field_label_pos',
|
3087 |
'w_allow_other',
|
3088 |
'w_allow_other_num',
|
3089 |
'w_value_disabled',
|
|
|
3090 |
'w_choices_value',
|
3091 |
'w_choices_params',
|
3092 |
'w_class',
|
3093 |
);
|
3094 |
+
|
3095 |
+
if ( strpos($temp, 'w_use_for_submission') > -1 ) {
|
3096 |
+
$params_names = array(
|
3097 |
+
'w_field_label_size',
|
3098 |
+
'w_field_label_pos',
|
3099 |
+
'w_field_option_pos',
|
3100 |
+
'w_hide_label',
|
3101 |
+
'w_flow',
|
3102 |
+
'w_choices',
|
3103 |
+
'w_choices_checked',
|
3104 |
+
'w_rowcol',
|
3105 |
+
'w_limit_choice',
|
3106 |
+
'w_limit_choice_alert',
|
3107 |
+
'w_required',
|
3108 |
+
'w_randomize',
|
3109 |
+
'w_allow_other',
|
3110 |
+
'w_allow_other_num',
|
3111 |
+
'w_value_disabled',
|
3112 |
+
'w_use_for_submission',
|
3113 |
+
'w_choices_value',
|
3114 |
+
'w_choices_params',
|
3115 |
+
'w_class',
|
3116 |
+
);
|
3117 |
+
}
|
3118 |
+
|
3119 |
}
|
3120 |
|
3121 |
/* For own select only */
|
3129 |
'w_choices_checked',
|
3130 |
'w_choices_disabled',
|
3131 |
'w_value_disabled',
|
|
|
3132 |
'w_choices_value',
|
3133 |
'w_choices_params',
|
3134 |
'w_class',
|
3135 |
);
|
3136 |
+
|
3137 |
+
if ( strpos($temp, 'w_use_for_submission') === FALSE ) {
|
3138 |
+
$params_names = array(
|
3139 |
+
'w_field_label_size',
|
3140 |
+
'w_field_label_pos',
|
3141 |
+
'w_hide_label',
|
3142 |
+
'w_size',
|
3143 |
+
'w_choices',
|
3144 |
+
'w_choices_checked',
|
3145 |
+
'w_choices_disabled',
|
3146 |
+
'w_value_disabled',
|
3147 |
+
'w_use_for_submission',
|
3148 |
+
'w_choices_value',
|
3149 |
+
'w_choices_params',
|
3150 |
+
'w_class',
|
3151 |
+
);
|
3152 |
+
}
|
3153 |
+
|
3154 |
}
|
3155 |
|
3156 |
foreach ( $params_names as $params_name ) {
|
3220 |
'w_allow_other',
|
3221 |
'w_allow_other_num',
|
3222 |
'w_value_disabled',
|
|
|
3223 |
'w_choices_value',
|
3224 |
'w_choices_params',
|
3225 |
'w_class',
|
3240 |
'w_allow_other',
|
3241 |
'w_allow_other_num',
|
3242 |
'w_value_disabled',
|
|
|
3243 |
'w_choices_value',
|
3244 |
'w_choices_params',
|
3245 |
'w_class',
|
3246 |
);
|
3247 |
}
|
3248 |
|
3249 |
+
if ( strpos($temp, 'w_use_for_submission') > -1 ) {
|
|
|
3250 |
$params_names = array(
|
3251 |
'w_field_label_size',
|
3252 |
'w_field_label_pos',
|
3256 |
'w_choices',
|
3257 |
'w_choices_checked',
|
3258 |
'w_rowcol',
|
|
|
|
|
3259 |
'w_required',
|
3260 |
'w_randomize',
|
3261 |
'w_allow_other',
|
3286 |
'w_allow_other',
|
3287 |
'w_allow_other_num',
|
3288 |
'w_value_disabled',
|
|
|
3289 |
'w_choices_value',
|
3290 |
'w_choices_params',
|
3291 |
'w_class',
|
3292 |
);
|
3293 |
+
|
3294 |
+
if ( strpos($temp, 'w_use_for_submission') > -1 ) {
|
3295 |
+
$params_names = array(
|
3296 |
+
'w_field_label_size',
|
3297 |
+
'w_field_label_pos',
|
3298 |
+
'w_field_option_pos',
|
3299 |
+
'w_hide_label',
|
3300 |
+
'w_flow',
|
3301 |
+
'w_choices',
|
3302 |
+
'w_choices_checked',
|
3303 |
+
'w_rowcol',
|
3304 |
+
'w_limit_choice',
|
3305 |
+
'w_limit_choice_alert',
|
3306 |
+
'w_required',
|
3307 |
+
'w_randomize',
|
3308 |
+
'w_allow_other',
|
3309 |
+
'w_allow_other_num',
|
3310 |
+
'w_value_disabled',
|
3311 |
+
'w_use_for_submission',
|
3312 |
+
'w_choices_value',
|
3313 |
+
'w_choices_params',
|
3314 |
+
'w_class',
|
3315 |
+
);
|
3316 |
+
}
|
3317 |
+
|
3318 |
}
|
3319 |
|
3320 |
/* For own select only */
|
3328 |
'w_choices_checked',
|
3329 |
'w_choices_disabled',
|
3330 |
'w_value_disabled',
|
|
|
3331 |
'w_choices_value',
|
3332 |
'w_choices_params',
|
3333 |
'w_class',
|
3334 |
);
|
3335 |
+
|
3336 |
+
if ( strpos($temp, 'w_use_for_submission') === FALSE ) {
|
3337 |
+
$params_names = array(
|
3338 |
+
'w_field_label_size',
|
3339 |
+
'w_field_label_pos',
|
3340 |
+
'w_hide_label',
|
3341 |
+
'w_size',
|
3342 |
+
'w_choices',
|
3343 |
+
'w_choices_checked',
|
3344 |
+
'w_choices_disabled',
|
3345 |
+
'w_value_disabled',
|
3346 |
+
'w_use_for_submission',
|
3347 |
+
'w_choices_value',
|
3348 |
+
'w_choices_params',
|
3349 |
+
'w_class',
|
3350 |
+
);
|
3351 |
+
}
|
3352 |
+
|
3353 |
}
|
3354 |
|
3355 |
foreach ( $params_names as $params_name ) {
|
3358 |
$temp = $temp[1];
|
3359 |
}
|
3360 |
|
3361 |
+
$use_for_submission = isset($param['w_use_for_submission']) ? $param['w_use_for_submission'] : 'no';
|
3362 |
|
3363 |
return $use_for_submission;
|
3364 |
}
|
frontend/views/form_maker.php
CHANGED
@@ -2292,7 +2292,6 @@ class FMViewForm_maker {
|
|
2292 |
'w_allow_other',
|
2293 |
'w_allow_other_num',
|
2294 |
'w_value_disabled',
|
2295 |
-
'w_use_for_submission',
|
2296 |
'w_choices_value',
|
2297 |
'w_choices_params',
|
2298 |
'w_class',
|
@@ -2313,13 +2312,35 @@ class FMViewForm_maker {
|
|
2313 |
'w_allow_other',
|
2314 |
'w_allow_other_num',
|
2315 |
'w_value_disabled',
|
2316 |
-
'w_use_for_submission',
|
2317 |
'w_choices_value',
|
2318 |
'w_choices_params',
|
2319 |
'w_class',
|
2320 |
);
|
2321 |
}
|
2322 |
if ( strpos($temp, 'w_limit_choice') > -1 ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2323 |
$params_names = array(
|
2324 |
'w_field_label_size',
|
2325 |
'w_field_label_pos',
|
@@ -2497,13 +2518,33 @@ class FMViewForm_maker {
|
|
2497 |
'w_allow_other',
|
2498 |
'w_allow_other_num',
|
2499 |
'w_value_disabled',
|
2500 |
-
'w_use_for_submission',
|
2501 |
'w_choices_value',
|
2502 |
'w_choices_params',
|
2503 |
'w_class',
|
2504 |
);
|
2505 |
}
|
2506 |
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2507 |
$params_names = array(
|
2508 |
'w_field_label_size',
|
2509 |
'w_field_label_pos',
|
@@ -2678,13 +2719,29 @@ class FMViewForm_maker {
|
|
2678 |
'w_choices_disabled',
|
2679 |
'w_required',
|
2680 |
'w_value_disabled',
|
2681 |
-
'w_use_for_submission',
|
2682 |
'w_choices_value',
|
2683 |
'w_choices_params',
|
2684 |
'w_class',
|
2685 |
);
|
2686 |
}
|
2687 |
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2688 |
$params_names = array(
|
2689 |
'w_field_label_size',
|
2690 |
'w_field_label_pos',
|
2292 |
'w_allow_other',
|
2293 |
'w_allow_other_num',
|
2294 |
'w_value_disabled',
|
|
|
2295 |
'w_choices_value',
|
2296 |
'w_choices_params',
|
2297 |
'w_class',
|
2312 |
'w_allow_other',
|
2313 |
'w_allow_other_num',
|
2314 |
'w_value_disabled',
|
|
|
2315 |
'w_choices_value',
|
2316 |
'w_choices_params',
|
2317 |
'w_class',
|
2318 |
);
|
2319 |
}
|
2320 |
if ( strpos($temp, 'w_limit_choice') > -1 ) {
|
2321 |
+
$params_names = array(
|
2322 |
+
'w_field_label_size',
|
2323 |
+
'w_field_label_pos',
|
2324 |
+
'w_field_option_pos',
|
2325 |
+
'w_hide_label',
|
2326 |
+
'w_flow',
|
2327 |
+
'w_choices',
|
2328 |
+
'w_choices_checked',
|
2329 |
+
'w_rowcol',
|
2330 |
+
'w_limit_choice',
|
2331 |
+
'w_limit_choice_alert',
|
2332 |
+
'w_required',
|
2333 |
+
'w_randomize',
|
2334 |
+
'w_allow_other',
|
2335 |
+
'w_allow_other_num',
|
2336 |
+
'w_value_disabled',
|
2337 |
+
'w_choices_value',
|
2338 |
+
'w_choices_params',
|
2339 |
+
'w_class',
|
2340 |
+
);
|
2341 |
+
}
|
2342 |
+
|
2343 |
+
if ( strpos($temp, 'w_use_for_submission') > -1 ) {
|
2344 |
$params_names = array(
|
2345 |
'w_field_label_size',
|
2346 |
'w_field_label_pos',
|
2518 |
'w_allow_other',
|
2519 |
'w_allow_other_num',
|
2520 |
'w_value_disabled',
|
|
|
2521 |
'w_choices_value',
|
2522 |
'w_choices_params',
|
2523 |
'w_class',
|
2524 |
);
|
2525 |
}
|
2526 |
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
2527 |
+
$params_names = array(
|
2528 |
+
'w_field_label_size',
|
2529 |
+
'w_field_label_pos',
|
2530 |
+
'w_field_option_pos',
|
2531 |
+
'w_hide_label',
|
2532 |
+
'w_flow',
|
2533 |
+
'w_choices',
|
2534 |
+
'w_choices_checked',
|
2535 |
+
'w_rowcol',
|
2536 |
+
'w_required',
|
2537 |
+
'w_randomize',
|
2538 |
+
'w_allow_other',
|
2539 |
+
'w_allow_other_num',
|
2540 |
+
'w_value_disabled',
|
2541 |
+
'w_choices_value',
|
2542 |
+
'w_choices_params',
|
2543 |
+
'w_class',
|
2544 |
+
);
|
2545 |
+
}
|
2546 |
+
|
2547 |
+
if ( strpos($temp, 'w_use_for_submission') > -1 ) {
|
2548 |
$params_names = array(
|
2549 |
'w_field_label_size',
|
2550 |
'w_field_label_pos',
|
2719 |
'w_choices_disabled',
|
2720 |
'w_required',
|
2721 |
'w_value_disabled',
|
|
|
2722 |
'w_choices_value',
|
2723 |
'w_choices_params',
|
2724 |
'w_class',
|
2725 |
);
|
2726 |
}
|
2727 |
if ( strpos($temp, 'w_hide_label') > -1 ) {
|
2728 |
+
$params_names = array(
|
2729 |
+
'w_field_label_size',
|
2730 |
+
'w_field_label_pos',
|
2731 |
+
'w_hide_label',
|
2732 |
+
'w_size',
|
2733 |
+
'w_choices',
|
2734 |
+
'w_choices_checked',
|
2735 |
+
'w_choices_disabled',
|
2736 |
+
'w_required',
|
2737 |
+
'w_value_disabled',
|
2738 |
+
'w_choices_value',
|
2739 |
+
'w_choices_params',
|
2740 |
+
'w_class',
|
2741 |
+
);
|
2742 |
+
}
|
2743 |
+
|
2744 |
+
if ( strpos($temp, 'w_use_for_submission') > -1 ) {
|
2745 |
$params_names = array(
|
2746 |
'w_field_label_size',
|
2747 |
'w_field_label_pos',
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: webdorado,10web,wdsupport,formmakersupport
|
|
3 |
Tags: form, forms, form builder, contact form, feedback, custom form, contact, web contact form, captcha, email, form manager, survey
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 5.8
|
6 |
-
Stable tag: 1.14.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -561,6 +561,9 @@ Where **{{field_id}}** is the ID of the field you wish to prefill. Also, **{{par
|
|
561 |
|
562 |
|
563 |
== Changelog ==
|
|
|
|
|
|
|
564 |
= 1.14.0 =
|
565 |
* Added: Moosend integration.
|
566 |
* Added: An option to show the choice label or value.
|
3 |
Tags: form, forms, form builder, contact form, feedback, custom form, contact, web contact form, captcha, email, form manager, survey
|
4 |
Requires at least: 4.6
|
5 |
Tested up to: 5.8
|
6 |
+
Stable tag: 1.14.1
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
561 |
|
562 |
|
563 |
== Changelog ==
|
564 |
+
= 1.14.1 =
|
565 |
+
* Fixed: Select, radio, checkbox fields.
|
566 |
+
|
567 |
= 1.14.0 =
|
568 |
* Added: Moosend integration.
|
569 |
* Added: An option to show the choice label or value.
|