UNPKG

@open-formulieren/formio-builder

Version:

An opinionated Formio webform builder for Open Forms

12 lines (11 loc) 789 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const jsx_runtime_1 = require("react/jsx-runtime"); const react_intl_1 = require("react-intl"); const formio_1 = require("../formio"); const ClearOnHide = () => { const intl = (0, react_intl_1.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 ((0, jsx_runtime_1.jsx)(formio_1.Checkbox, { name: "clearOnHide", label: (0, jsx_runtime_1.jsx)(react_intl_1.FormattedMessage, { id: 'iqAbXt', defaultMessage: [{ type: 0, value: "Clear on hide" }] }), tooltip: tooltip })); }; exports.default = ClearOnHide;