Disable minDdate to selection with allowing to show old dates in input

Hello guys, Did you ever met in such kind of situation where you want to set minDate to Today but still at least user can have the date in input which becomes past date after that day is gone according to Eonasdan/bootstrap-datetimepicker.  Well I had that case, so to overcome to this issue, there is a parameter in this awesome … Continue reading Disable minDdate to selection with allowing to show old dates in input

Validate whole form with Bootstrap Validator

Hello All, In this post, I am gonna tell you a trick about Bootstrap Validator is very simple and easy to use validation, you can check it   $(‘form.user_registration’).on(‘validated.bs.validator’, function (e) { if ($(‘form.user_registration’).validator(‘update’).has(‘.has-error’).length) { //do_something_when_form_has_error } else { //can_revert_when_form_is_error_free } });   Here,  form.user_registration is our form with class user_registration.   Hope it’ll be helpful to anyone … Continue reading Validate whole form with Bootstrap Validator

Validation messages for Post Title and Post Content without reloading page in acf_form

In my previous Post , I felt there was something missing, and to fill that missing thing, here’s the related post… So basically this post is all about the Front-end acf_form. For getting the desired result, we need to add js code in our acf_form template or either we can do this by hook in function.php file. … Continue reading Validation messages for Post Title and Post Content without reloading page in acf_form

Post content required with acf_form

Hello all, To achieve the subject of this post Title, we can just have below code in our theme’s function.php file: add_filter( ‘acf/get_valid_field’, ‘change_input_labels’); function change_input_labels($field) { if($field[‘name’] == ‘_post_content’) { $field[‘required’] = 1; //by setting 1, it will make the post content field required } return $field; }   That’s it !! The hook … Continue reading Post content required with acf_form