Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class="wpuf-block text-sm/6 wpuf-font-medium wpuf-text-gray-900 !wpuf-mb-0">
type="radio"
:name="'radio_' + editing_form_field.id + '_' + option_field.name"
:value="key"
:name="option_field.name"
v-model="value"
:class="builder_class_names('radio')">
{{ option }}
Expand All @@ -34,6 +35,7 @@ class="wpuf-flex wpuf-items-center"
:name="'radio_' + editing_form_field.id + '_' + option_field.name"
:value="key"
v-model="value"
:name="option_field.name"
:class="builder_class_names('radio')">
{{ option }}
</label>
Expand Down
1 change: 1 addition & 0 deletions assets/js-templates/form-components.php
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ class="wpuf-block text-sm/6 wpuf-font-medium wpuf-text-gray-900 !wpuf-mb-0">
type="radio"
:name="'radio_' + editing_form_field.id + '_' + option_field.name"
:value="key"
:name="option_field.name"
v-model="value"
:class="builder_class_names('radio')">
{{ option }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ public function __construct() {
'default' => '',
'size' => '40',
'wpuf_cond' => $this->conditionals,
'wpuf_visibility' => $this->get_default_visibility_prop(),
'restriction_to' => 'max',
'restriction_type' => 'character',
'width' => 'large',
],
[
'input_type' => 'textarea',
Expand All @@ -47,7 +51,11 @@ public function __construct() {
'insert_image' => 'yes',
'word_restriction' => '',
'wpuf_cond' => $this->conditionals,
'wpuf_visibility' => $this->get_default_visibility_prop(),
'restriction_to' => 'max',
'restriction_type' => 'character',
'text_editor_control' => [],
'width' => 'large',
],
[
'input_type' => 'textarea',
Expand All @@ -64,7 +72,11 @@ public function __construct() {
'default' => '',
'rich' => 'no',
'wpuf_cond' => $this->conditionals,
'wpuf_visibility' => $this->get_default_visibility_prop(),
'restriction_to' => 'max',
'restriction_type' => 'character',
'text_editor_control' => [],
'width' => 'large',
],
[
'input_type' => 'text',
Expand All @@ -82,6 +94,8 @@ public function __construct() {
'min_value_field' => '0',
'max_value_field' => '',
'wpuf_cond' => $this->conditionals,
'wpuf_visibility' => $this->get_default_visibility_prop(),
'width' => 'large',
],
[
'input_type' => 'text',
Expand All @@ -99,6 +113,8 @@ public function __construct() {
'min_value_field' => '0',
'max_value_field' => '',
'wpuf_cond' => $this->conditionals,
'wpuf_visibility' => $this->get_default_visibility_prop(),
'width' => 'large',
],
[
'input_type' => 'image_upload',
Expand All @@ -113,6 +129,8 @@ public function __construct() {
'css' => '',
'max_size' => '1024',
'wpuf_cond' => $this->conditionals,
'wpuf_visibility' => $this->get_default_visibility_prop(),
'width' => 'large',
],
[
'input_type' => 'image_upload',
Expand Down Expand Up @@ -145,6 +163,8 @@ public function __construct() {
'hidden' => 'Hidden',
],
'wpuf_cond' => $this->conditionals,
'wpuf_visibility' => $this->get_default_visibility_prop(),
'width' => 'large',
],
[
'input_type' => 'textarea',
Expand All @@ -162,7 +182,11 @@ public function __construct() {
'rich' => 'no',
'word_restriction' => '',
'wpuf_cond' => $this->conditionals,
'wpuf_visibility' => $this->get_default_visibility_prop(),
'restriction_to' => 'max',
'restriction_type' => 'character',
'text_editor_control' => [],
'width' => 'large',
],
[
'input_type' => 'checkbox',
Expand All @@ -177,6 +201,8 @@ public function __construct() {
'_enable_reviews' => 'Enable reviews',
],
'wpuf_cond' => $this->conditionals,
'wpuf_visibility' => $this->get_default_visibility_prop(),
'width' => 'large',
],
];
$this->form_settings = [
Expand Down
Loading