# jetformbuilder/3.6.6/modules/block-parsers/fields/default-parser.php

JetFormBuilder — Dynamic Blocks Form Builder, version 3.6.6. 31 lines.

- Page: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/code/modules/block-parsers/fields/default-parser.php
- Raw: https://pluginprobe.com/plugins/jetformbuilder/3.6.6/raw/modules/block-parsers/fields/default-parser.php
- Modified: 2026-08-05T11:04:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jetformbuilder/3.6.6/code/modules/block-parsers/fields/default-parser.php#L10-L20`.

```php
<?php


namespace JFB_Modules\Block_Parsers\Fields;

use JFB_Modules\Block_Parsers\Field_Data_Parser;

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

class Default_Parser extends Field_Data_Parser {

	public function type() {
		return 'default';
	}

	protected function allows_array_value(): bool {
		switch ( $this->get_type() ) {
			case 'checkbox-field':
				return true;
			case 'select-field':
				return (bool) $this->get_setting( 'multiple' );
			default:
				return false;
		}
	}

}

```
