Matrix Improvements (#606)
* Support disable on matrix * fix checkbox and radio icon * Use Nuxt UI toggle * Can set max_char_limit null * fix action icon design * Support for URL prefill for Matrix * Apply theme color on toggle * Set --form-color as style variable and use it * Set default value for form-color * fix formatting --------- Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
@@ -91,7 +91,7 @@ abstract class UserFormRequest extends \Illuminate\Foundation\Http\FormRequest
|
||||
|
||||
// Text field
|
||||
'properties.*.multi_lines' => 'boolean|nullable',
|
||||
'properties.*.max_char_limit' => 'integer|nullable|min:1|max:2000',
|
||||
'properties.*.max_char_limit' => 'integer|nullable|min:1',
|
||||
'properties.*.show_char_limit ' => 'boolean|nullable',
|
||||
'properties.*.secret_input' => 'boolean|nullable',
|
||||
|
||||
@@ -134,8 +134,7 @@ abstract class UserFormRequest extends \Illuminate\Foundation\Http\FormRequest
|
||||
return [
|
||||
'properties.*.name.required' => 'The form block number :position is missing a name.',
|
||||
'properties.*.type.required' => 'The form block number :position is missing a type.',
|
||||
'properties.*.max_char_limit.min' => 'The form block number :position max character limit must be at least 1 OR Empty',
|
||||
'properties.*.max_char_limit.max' => 'The form block number :position max character limit may not be greater than 2000.',
|
||||
'properties.*.max_char_limit.min' => 'The form block number :position max character limit must be at least 1 OR Empty'
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user