@open-formulieren/formio-builder
Version:
An opinionated Formio webform builder for Open Forms
10 lines (9 loc) • 641 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { FormattedMessage, useIntl } from 'react-intl';
import { Checkbox } from '../formio';
const ClearOnHide = () => {
const intl = useIntl();
const tooltip = intl.formatMessage({ id: "cAC5kL", defaultMessage: [{ type: 0, value: "Remove the value of this field from the submission if it is hidden. Note: the value of this field is then also not used in logic rules!" }] });
return (_jsx(Checkbox, { name: "clearOnHide", label: _jsx(FormattedMessage, { id: 'iqAbXt', defaultMessage: [{ type: 0, value: "Clear on hide" }] }), tooltip: tooltip }));
};
export default ClearOnHide;