skip to Main Content

WordPress CF7 custom validation

I am new to wordpress php and have a question regarding custom contact form 7 validation. I have the code below and wish to add this to return the error msg if not selected. function add_shortcode_metalspurityradio() { wpcf7_add_shortcode( 'goldkarat', 'metalspurityradio_handler',…

VIEW QUESTION

Laravel – How can I fix the validation error when adding a file?

I work with laravel and cms orchid. Why a validation error occurs when adding a file via the upload component. Layout::rows([ Select::make('user_id') ->value($this->orders->user_id) ->fromModel(User::class, 'familia'), Upload::make('file')->maxFiles(1)->maxFileSize(50) ->title('Файл для вывода')->acceptedFiles('.pdf,.doc,.docx,.txt'), ]); Message of error: Validation error. File upload error. Code php.ini…

VIEW QUESTION

Javascript – Joi validation not working correctly Nodejs

I am trying to validate a schema. its not very complex. below is my code Joi.object({ mobile: Joi.string() .label('mobile') .pattern(/^(+)[1-9]d{7,14}$/) .messages({ 'string.pattern.base': 'Invalid mobile number', }), email: Joi.string() .email({ tlds: { allow: false } }) .label('email') .messages({ 'string.email': 'Invalid email…

VIEW QUESTION
Back To Top
Search