client/src/StepFormGroup.js
/**
     * A prop function passed from PrepStepsForm to update the above state
     * @param stepNumber this formgroup's step number
     * @param stepName this formgroup's selected step name value
     * @param input one of this formgroup's inputs
     * @param inputIndex the index of the input to be updated
     */
A prop function passed from PrepStepsForm to update the above state
@param stepNumber this formgroup's step number
@param stepName this formgroup's selected step name value
@param input one of this formgroup's inputs
@param inputIndex the index of the input to be updated
A prop function passed from PrepStepsForm to update the above state @param stepNumber this formgroup ' s step number @param stepName this formgroup ' s selected step name value @param input one of this formgroup ' s inputs @param inputIndex the index of the input to be updated
updateAbove(stepName, input, inputIndex) {
        let newStepName = (typeof stepName !== 'undefined') ? stepName : this.props.stepName;
        let trans = new Transformations();
        if(stepName === '' || this.props.steps[trans.getStepIndex(newStepName)].numOfInputs === 0) {   
            this.recordedInputs = [];
        }
        else {
            this.recordedInputs[inputIndex] = input;
        }
        this.props.onFormGroupChange(this.props.stepNumber, newStepName, this.recordedInputs.slice());
    }
updateAbove ( stepName , input , inputIndex ) { let newStepName = ( typeof stepName !== 'undefined' ) ? stepName : this . props . stepName ; let trans = new Transformations ( ) ; if ( stepName === '' || this . props . steps [ trans . getStepIndex ( newStepName ) ] . numOfInputs === 0 ) { this . recordedInputs = [ ] ; } else { this . recordedInputs [ inputIndex ] = input ; } this . props . onFormGroupChange ( this . props . stepNumber , newStepName , this . recordedInputs . slice ( ) ) ; }
A prop function passed from PrepStepsForm to update the above state
 @param stepNumber this formgroup's step number
 @param stepName this formgroup's selected step name value
 @param input one of this formgroup's inputs
 @param inputIndex the index of the input to be updated
A prop function passed from PrepStepsForm to update the above state @param stepNumber this formgroup ' s step number @param stepName this formgroup ' s selected step name value @param input one of this formgroup ' s inputs @param inputIndex the index of the input to be updated
// set recordedInputs accordingly // if there is not step selected, or the step selected has 0 required inputs