Multi form validation through parsley.js - parsley.js

I am facing an in asp.net while implementing parsley.js. I am having a master page in which there is a form tag where i pass data-parsley-validate. In slave page there are 3 forms in which two is optional for user to fill up . When i applied validation and user clicks on submit button . Parsley validation occurs on all 3 forms . I just want to occur on single form. As asp.net support only one form tag for the form . how i can apply this validation on my 3 blocks individually.

Related

React-final-form | Form field validation with external field dependencies

I have a problem on my current MVC (DotNet) application.
My form is render with classic MVC and inside it another "form" with react-final-form.
I need to validate a field in my react form base on a field rendered in the MVC form (so outside react-final-form). When the MVC field change, i would like to trigger the validate function in the react form.
Here is a codesandbox with the problem : https://codesandbox.io/s/validation-with-external-dependencies-g67d8
To reproduce, just check the Required checkbox and submit. Normally, this should fail. But as the validation is not triggered after the checkbox change, the react form is not aware of this change.
Thanks in advance for your help.

Redux-form validation of several tabs

I have several tabs with redux-form fields. Of course, I have a validator, that have to validate just active tab. But there's a little problem. When I change active tab, validator checks fields value just if I try to do anything (click on any fields for example).
The question is How can I pass formProps to validator when I change active tab?
A have a similar app working fine here.
I followed "Wizard Form" strategy (http://redux-form.com/6.3.1/examples/wizard/), using 1 form per tab, all using the same form name.
Make sure you render just the body/form of the active tab, and don't submit when changing tabs.

AngularJS: Form validation whereas html is not displayed

I'm developing an application containing several forms, each included in a specific route.
I need to validate all those forms on a global button click. But one form is displayed only, the others don't exist.
How can I process this validation whereas the HTML containing the validation rules (ng-required, ...) is not instantiated?
Thanks.
Vincent.

Create a template using another template

I'm trying to create a template which renders a form and then cache that form as template so that I can use it in displaying form with user inputs while in edit.
So far I tried merging both the data (form configuration data+ form input given by user) and render the form. But this won't allow me to cache the form as template and need additional work to retrieve the user input while saving.
Thanks.

Drupal 7 form message not displaying in custom page

I am using drupal 7 and I have a custom page page--user--login.tpl.php where login form and registration form are present in the same page.
When I click the "Sign in" button without filling in the fields, it is only highlighting the required fields. Error message is displayed when the "Sign in" button is clicked the second time only.
The code I used in page--user--login.tpl.php is as follows:
<?php
print(drupal_render(drupal_get_form('user_login_block')));
?>

Resources