Questions tagged [bootstrapvalidator-1000hz]

The Validator plugin offers automatic form validation configurable via mostly HTML5 standard attributes. It also provides an unobtrusive user experience, because nobody likes a naggy form.

Features

  • Configurable via data-api and standard HTML5 attributes
  • Submit is disabled until the form is valid and all required fields are complete
  • Customizable error messages
  • Custom validator functions Validation of an input field via AJAX

Useful links:

Examples and usage at: http://1000hz.github.io/bootstrap-validator/

Github repo: https://github.com/1000hz/bootstrap-validator

13 questions
3
votes
1 answer

How to dynamically pass an id to url of Bootstrap validator rule: remote for a same form input field?

Bootstrap Validator v 0.5.2 is being re-used for validating form (#myForm) in a modal. Need is dynamically pass an unique id (Foreign Key) to 'url' of 'remote' rule when form loads on a modal as below. var remoteUrl = "/remoteurl/"; var id =…
3
votes
1 answer

.validator('update') not working for dynamically added fields

I am using Bootstrap (plugin): validator.js v0.11.9 bootstrap validator for field validations in a Python project (Python version 3.6 and Django version 1.11). On a button click I have added couple of fields to the form using jquery - JQuery : …
2
votes
0 answers

bootstrap validator after ajax success

In Bootstrap 3, I've a main DIV #content-page that contains a first #button_1. On #button_1 click, Ajax loads a form on the same DIV, #FORM, that contains some required inputs and a submit button. $('#FORM').validator().on('submit', function(event)…
perseoclub
  • 29
  • 6
2
votes
2 answers

Bootstrap validator with a required hidden input field

I am using the bootrap validator library: http://1000hz.github.io/bootstrap-validator/ I have a form which includes a modal/ajax upload for a file, the result of which is to update a hidden field with a mediaId. That means that after the user…
checklist
  • 12,340
  • 15
  • 58
  • 102
1
vote
1 answer

Bootstrapvalidator does not work in dynamic input fields

I use Bootstrapvalidator to validate a form that has a number of dynamic input fields. The number of input fields displayed depends on the value of the selected comboBox (select), which then displays a number of input fields through Ajax. At the…
1
vote
0 answers

Check for Apostrophe in Regex Pattern in Element Added with jQuery (Single-Quote in Single-Quote in Double-Quote)

I am trying to create an input for a company name using jQuery. I am also using the Bootstrap Validator plugin by 1000hz in order to add validation for this input. I am specifically trying to use the "pattern" attribute in order to validate the…
0
votes
0 answers

Custom validation 1000hz bootstrap validator

I implemented a custom validation function and it validates correctly but the problem is I can submit the form successfully even if the field is invalid. this is my code: $("#applicant-email").change(function() { var restURL=…
Lina Basuni
  • 77
  • 2
  • 10
0
votes
0 answers

Bootstrap custom validation

I'm trying to use 1000hz bootstrap validator to add custom validation for emails, I want to generate validation if the value of email field is repeated in another field. Here is my code so far: var filledEmail = []; function…
0
votes
2 answers

Load jQuery Plugin on dynamic created form

To validate a form, I use a validation plugin. Example: $ ( '# post-form').validator() I would like to load the plugin on a form that is dynamically created via an Ajax return. What I try: $ (document).on ('ready', '#…
0
votes
1 answer

Bootstrap Validator - RegExp weird behavior

I have to validate a field that allows just words, spaces, and the characters "&" and "-". The regex I'm using is /[A-Za-z\s\b-&]+/g. Here is the code: $('#register_validator').bootstrapValidator({ framework: 'bootstrap', fields: { …
0
votes
1 answer

bootstrap-validator custom validation and ajax request return on success/ok

I use bootstrap-validator(http://1000hz.github.io/bootstrap-validator) and need display error message if ajax request is successful and has status 'ok'.(customer exists so to speak). How can I return on ajax request and get it working with…
0
votes
1 answer

bootstrap 3 validator - change password form

I have a bootstrap 3 form and I am using validator to validate forms. I have succesfully implemented basic validations for sign-in forms and now I am implementing validation of change password form. The form is as follows:
0
votes
1 answer

1000hz bootstrap validator custom

I am having troubles getting a return string passed back to the validator. Here is my js $('#frmSignUp').validator({ custom: { emailexist: function ($el) { var result = checkUserEmail($el.val()) …
BLars
  • 157
  • 1
  • 1
  • 6