Questions tagged [parsley]

Parsley is an Application Framework that helps Flex/Flash developer create large scale enterprise applications. It uses the concept of dependency injection but has many extra features that helps reduce development time and complexity.

144 questions
0
votes
1 answer

SequenceWaiter doesn't recognize my event

I'm using this AsyncHelper. I would like to create basic test case where I would like to dispatch event from the test method (by Parsley MessageDispatcher), catch this event in any other method and dispatch it back (by flex EventDispatcher). This is…
emte
  • 647
  • 1
  • 8
  • 25
0
votes
2 answers

Parsley validation: after a successful input validation an empty element is remained in DOM

I'm using parsley (parsleyjs.org) validation but after a field got validated, an empty element remains in the DOM. How can I remove it? It seems to be a Parsley bug: Parsley should remove the error container if there are no errors…
UWS
  • 25
  • 6
0
votes
1 answer

what will be regular expression for email with custom domain in parsley validation

I have a form on which I want to apply parsley validation. I want to allow only email with domain @ciit-atk.edu.pk but I don't have a regex for it that will work with parsley validation. The sample email is xx-xx-xx@ciit-atk.edu.pk and any other…
Samist
  • 1
  • 2
0
votes
0 answers

minlength maxlength form php no effect

I am trying to edit a php form (two different div segments). 1.) I am trying to add minlength to a single line text field input. Maxlength works, but only because it is part of the underlying theme. (The form is part of a theme). I can add…
0
votes
2 answers

Parsley JS - Custom Validator for Minimum Number of Select Set to Value

I have a form where I need to validate that there are at least 5 select boxes set to Yes (or . If there are more that's fine, but if there are less I need it to not submit the form and show an error. Thus, I need a custom validator. I've created a…
kittonian
  • 1,020
  • 10
  • 22
0
votes
1 answer

parsly validator message not displayed when second validator pass

I've got a field that has two validators: one is parsley-pattern, second is custom parsley validator "optional if" . When the custom validation pass (the other field has valid value provided) but the pattern validation failed (invalid value for this…
Malvinka
  • 1,185
  • 1
  • 15
  • 36
0
votes
1 answer

parsley when errormessage or successmessage add class to a parent

I'm using Parsley in my form, so when an email address is being entered and this is a wrong syntax you will get an error message, when it is correct you will get a success message. This all works fine, but i would like to add a class to a parent. As…
0
votes
1 answer

How to Identify which control is violated in parsleyjs

I want to know which control is violated... function validate() { vldt = $('#frmInt').parsley().validate(); alert(" is Submitted : "+ vldt ); if(vldt == false) { alert(" Violdated Control is : " + ? ) } } A…
qɐʇǝɥɐW
  • 347
  • 3
  • 17
0
votes
1 answer

Parsley Custom Validator Returns Null on Email check

Good Evening, We have a from with multiple fields. Email Pass Address etc We use parsley for validation. All the fields are validated using locally using Parsley, except the email address which makes a trip to the server. To accomplish this,…
George Eivaz
  • 145
  • 2
  • 10
0
votes
0 answers

Submit button not validate form - Parsley js

As the title says, the submission button is not a valid form, while when I write on the form yes, it is as if it does not activate the validation of the form and I don't understand why. Here is the code ...
0
votes
1 answer

Why the form is not setting after using parsley().reset(); and still showing validators

I am Using ParsleyJs to validate below shown form, I have been trying to reset the form by calling Reset() function on click of Reset button and i have validated the form using isValid() on form submission and not from the data-parsley-validate in…
0
votes
1 answer

Validate fields in form before submit in Parsley 2.9.1

Is any posibility to validate inputs before click submit button in form? E.g.: this form http://parsleyjs.org/doc/examples/customvalidator.html If you enter values to this form it doesn't check validation. But if you click submit button it checks…
pancake
  • 63
  • 7
0
votes
2 answers

Change event to check change on any form element

I have a from with disabled button, which gets enabled when the form is valid. With the function below I'm checking for changes and it works if the form consists only of inputs. How can I check for change on other elements like select or…
0
votes
1 answer

addError and removeError dynamically parsley with laravel

I am using parsley to validate my form, with ajax and laravel on the server side. Client-side validations work correctly by combining bootstrap styles. This the code: $('#form_create').parsley({ errorClass: 'is-invalid', successClass:…
Weyler A.
  • 11
  • 1
0
votes
1 answer

How do I keep Javascript Parsley from submitting when a button (not submit) is clicked?

I'm using Parsley to validate forms. I'm using 2.8 wbich is a more current version. When any button on my form is clicked (even it's not submit), Parsley will trigger a submit. For example I have this button which clears an uploaded photo.
David J
  • 1,018
  • 1
  • 9
  • 14