mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-01 19:59:35 -05:00
fix: recall from hidden fields of in-app surveys (#2917)
This commit is contained in:
committed by
GitHub
parent
aa40b916ab
commit
ec70c6c613
@@ -176,6 +176,7 @@ const renderWidget = async (
|
||||
setIsError(false);
|
||||
responseQueue.processQueue();
|
||||
},
|
||||
hiddenFieldsRecord: hiddenFields,
|
||||
});
|
||||
}, survey.delay * 1000);
|
||||
};
|
||||
|
||||
@@ -206,6 +206,7 @@ const renderWidget = async (
|
||||
setIsError(false);
|
||||
responseQueue.processQueue();
|
||||
},
|
||||
hiddenFieldsRecord: hiddenFields,
|
||||
});
|
||||
}, survey.delay * 1000);
|
||||
};
|
||||
|
||||
@@ -21,6 +21,7 @@ export const SurveyModal = ({
|
||||
languageCode,
|
||||
responseCount,
|
||||
styling,
|
||||
hiddenFieldsRecord,
|
||||
}: SurveyModalProps) => {
|
||||
const [isOpen, setIsOpen] = useState(true);
|
||||
|
||||
@@ -68,6 +69,7 @@ export const SurveyModal = ({
|
||||
styling={styling}
|
||||
isCardBorderVisible={!highlightBorderColor}
|
||||
clickOutside={placement === "center" ? clickOutside : undefined}
|
||||
hiddenFieldsRecord={hiddenFieldsRecord}
|
||||
/>
|
||||
</Modal>
|
||||
</div>
|
||||
|
||||
@@ -71,7 +71,6 @@ export const RecallItemSelect = ({
|
||||
}, [recallItems]);
|
||||
|
||||
const hiddenFieldRecallItems = useMemo(() => {
|
||||
if (localSurvey.type !== "link") return [];
|
||||
if (localSurvey.hiddenFields.fieldIds) {
|
||||
return localSurvey.hiddenFields.fieldIds
|
||||
.filter((hiddenFieldId) => {
|
||||
|
||||
Reference in New Issue
Block a user