Skip to content

Commit

Permalink
Remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
epi-qang2 committed Jan 30, 2024
1 parent 3467945 commit 69675a9
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/@episerver/forms-sdk/src/helpers/buildConfirmationMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,6 @@ export function getValidStepsElement(elementKey: string, form: FormContainer, cu
}
return formElement
}
/**
* Check if the element is visible or not
* @param elementKey The form element key
* @param form The form container
* @returns
*/
export function checkElementIsVisible(formElement: FormElementBase, data: FormSubmission[]): boolean {
const conditionProps = (formElement.properties as unknown) as ConditionProperties;
if (isNull(conditionProps.satisfiedAction)) {
return true;
}
const formDependConditions = new FormDependConditions(formElement)
if (formDependConditions.checkConditions(data)) {
return equals(conditionProps.satisfiedAction, SatisfiedActionType.Show);
}
else {
return equals(conditionProps.satisfiedAction, SatisfiedActionType.Hide);
}
}
/**
* Get confirmation summary data from the start to the current step
* @param data The current form data
Expand Down

0 comments on commit 69675a9

Please sign in to comment.