How to use the redux-form.isValid function in redux-form

To help you get started, we’ve selected a few redux-form examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github veritone / veritone-sdk / packages / veritone-widgets / src / shared / Wizard / index.js View on Github external
(state, ownProps) => ({
    isValid: isValid(ownProps.formName)(state),
    isDirty: isDirty(ownProps.formName)(state),
    submitErrors: getFormSubmitErrors(ownProps.formName)(state)
  }),
  {
github freeCodeCamp / pantry-for-good / client / modules / questionnaire / components / FieldForm.js View on Github external
const mapStateToProps = state => ({
  fieldIds: selectors.qEditor.getFieldIds(state),
  getField: selectors.qEditor.getFieldById(state),
  getLinkableFields: selectors.questionnaire.getLinkableFields(state),
  editing: selectors.qEditor.getEditingField(state),
  section: selectors.qEditor.getSelectedSection(state),
  questionnaire: selectors.qEditor.getEditingQuestionnaire(state),
  submitSucceeded: hasSubmitSucceeded(FORM_NAME)(state),
  isValid: isValid(FORM_NAME)(state),
  isPristine: isPristine(FORM_NAME)(state)
})
github reportportal / service-ui / app / src / pages / inside / dashboardItemPage / modals / editWidgetModal / editWidgetModal.jsx View on Github external
(state) => ({
    projectId: activeProjectSelector(state),
    widgetSettings: getFormValues(WIDGET_WIZARD_FORM)(state),
    dirty: isDirty(WIDGET_WIZARD_FORM)(state),
    valid: isValid(WIDGET_WIZARD_FORM)(state),
  }),
  {
github bakdata / conquery / frontend / lib / js / external-forms / ExternalFormsQueryRunner.js View on Github external
function isActiveFormValid(state) {
  const form = getActiveForm(state);

  if (!form) return false;

  return !isPristine(state.externalForms.activeForm, selectReduxFormState)(state) &&
         isValid(state.externalForms.activeForm, selectReduxFormState)(state);
}
github opennode / waldur-homeport / app / scripts / components / marketplace / details / OrderSummary.tsx View on Github external
const mapStateToProps = (state, ownProps) => ({
  customer: getCustomer(state),
  project: getProject(state),
  total: pricesSelector(state, ownProps).total,
  formData: getFormValues('marketplaceOffering')(state),
  formValid: isValid('marketplaceOffering')(state),
});
github opennode / waldur-homeport / src / openstack / openstack-volume / OpenstackVolumeCheckoutSummary.tsx View on Github external
const mapStateToProps = (state, ownProps) => {
  const formData: any = getFormValues('marketplaceOffering')(state);
  return {
    formData: formData && formData.attributes || {attributes: {}},
    formValid: isValid('marketplaceOffering')(state),
    customer: getCustomer(state),
    project: getProject(state),
    total: pricesSelector(state, ownProps).total,
  };
};