public function getFieldsValidDataAttributes()
    {
        $result = [];
        $formConfiguration = $this->getFormObject()->getConfiguration();
        $formResult = $this->getFormObject()->getFormResult();

        foreach ($formConfiguration->getFields() as $field) {
            $fieldName = $field->getName();

            if (false === $formResult->fieldIsDeactivated($field)
                && false === $formResult->forProperty($fieldName)->hasErrors()
            ) {
                $result[self::getFieldDataValidKey($fieldName)] = '1';
            }
        }

        return $result;
    }
public function getFieldsValidDataAttributes()
    {
        $result = [];
        $formConfiguration = $this->getFormObject()->getConfiguration();
        $formResult = $this->getFormObject()->getFormResult();

        foreach ($formConfiguration->getFields() as $field) {
            $fieldName = $field->getName();

            if (false === $formResult->fieldIsDeactivated($field)
                && false === $formResult->forProperty($fieldName)->hasErrors()
            ) {
                $result[self::getFieldDataValidKey($fieldName)] = '1';
            }
        }

        return $result;
    }
public function getFieldsValidDataAttributes ( ) { $ result = [ ] ; $ formConfiguration = $ this -> getFormObject ( ) -> getConfiguration ( ) ; $ formResult = $ this -> getFormObject ( ) -> getFormResult ( ) ; foreach ( $ formConfiguration -> getFields ( ) as $ field ) { $ fieldName = $ field -> getName ( ) ; if ( false === $ formResult -> fieldIsDeactivated ( $ field ) && false === $ formResult -> forProperty ( $ fieldName ) -> hasErrors ( ) ) { $ result [ self :: getFieldDataValidKey ( $ fieldName ) ] = '1' ; } } return $ result ; }
Handles the data attributes for the fields which are valid.

Example: `fz-valid-email="1"`

@return array
Handles the data attributes for the fields which are valid .