public function copyValueFromOtherStep(FieldList $fields, $formStep, $fieldName, $fieldNameTarget = null)
    {
        // if a target field isn't defined use the same fieldname
        if (!$fieldNameTarget) {
            $fieldNameTarget = $fieldName;
        }

        $fields->fieldByName($fieldNameTarget)->setValue($this->getValueFromOtherStep($formStep, $fieldName));
    }
public function copyValueFromOtherStep(FieldList $fields, $formStep, $fieldName, $fieldNameTarget = null)
    {
        // if a target field isn't defined use the same fieldname
        if (!$fieldNameTarget) {
            $fieldNameTarget = $fieldName;
        }

        $fields->fieldByName($fieldNameTarget)->setValue($this->getValueFromOtherStep($formStep, $fieldName));
    }
public function copyValueFromOtherStep ( FieldList $ fields , $ formStep , $ fieldName , $ fieldNameTarget = null ) { // if a target field isn't defined use the same fieldname if ( ! $ fieldNameTarget ) { $ fieldNameTarget = $ fieldName ; } $ fields -> fieldByName ( $ fieldNameTarget ) -> setValue ( $ this -> getValueFromOtherStep ( $ formStep , $ fieldName ) ) ; }
allows to get a value from another step copied over

@param FieldList $fields
@param string    $formStep
@param string    $fieldName
@param string    $fieldNameTarget (optional)
allows to get a value from another step copied over