Search in sources :

Example 1 with AutoDetectFormComponentInfo

use of com.onehippo.cms7.eforms.hst.components.info.AutoDetectFormComponentInfo in project hippo by NHS-digital-website.

the class CustomAutoDetectFormComponent method getFormBeanFromPicker.

private FormBean getFormBeanFromPicker(final HstRequest request) {
    final AutoDetectFormComponentInfo paramsInfo = getComponentParametersInfo(request);
    final String formDocPath = paramsInfo.getForm();
    FormBean formBean = getFormBeanFromPath(request, formDocPath);
    if (formBean == null) {
        formBean = super.getFormBean(request);
    }
    return formBean;
}
Also used : AutoDetectFormComponentInfo(com.onehippo.cms7.eforms.hst.components.info.AutoDetectFormComponentInfo) FormBean(com.onehippo.cms7.eforms.hst.beans.FormBean)

Aggregations

FormBean (com.onehippo.cms7.eforms.hst.beans.FormBean)1 AutoDetectFormComponentInfo (com.onehippo.cms7.eforms.hst.components.info.AutoDetectFormComponentInfo)1