-
-
- {`${title}${title.at(-1) !== 'a' ? 's' : ''}`}
-
-
-
-
-
-
- {jp.value(values, section.jsonPath).map((_fields: Dict, index: number) => {
- const key = `${section.jsonPath}-${index}`;
-
- return (
-
-
-
-
- {`${title} #${index + 1}`}
-
-
- {jp.value(values, section.jsonPath).length > 1 &&
-
-
-
- }
-
-
-
- {formSections[MakeReadableString(FlattenJSONPath(section.jsonPath)).split(' ').slice(1).join(' ')].fields.map(field => {
- let localField = cloneDeep(field);
-
- localField.jsonPath = field.jsonPath.replace('index', String(index));
-
- return (
-
-
- {ConstructFormField(localField, jp.value(values, localField.jsonPath))}
-
-
- );
- })}
-
-
-
-
- );
- })}
-
- )}
-