diff --git a/packages/form-builder/addon/components/cfb-form-editor/question-option.hbs b/packages/form-builder/addon/components/cfb-form-editor/question-option.hbs
new file mode 100644
index 000000000..7d53ee824
--- /dev/null
+++ b/packages/form-builder/addon/components/cfb-form-editor/question-option.hbs
@@ -0,0 +1,89 @@
+
+
+
+
+ {{#if @canReorder}}
+
+ {{/if}}
+ {{#if (is-empty @row.id)}}
+
+ {{else}}
+
+ {{/if}}
+
+
+
+
+
+
+
+
+
+
+ {{#if this.showJexl}}
+
+
+
+ {{/if}}
+
+
+
\ No newline at end of file
diff --git a/packages/form-builder/addon/components/cfb-form-editor/question-option.js b/packages/form-builder/addon/components/cfb-form-editor/question-option.js
new file mode 100644
index 000000000..6b4f30ae4
--- /dev/null
+++ b/packages/form-builder/addon/components/cfb-form-editor/question-option.js
@@ -0,0 +1,6 @@
+import Component from "@glimmer/component";
+import { tracked } from "@glimmer/tracking";
+
+export default class CfbFormEditorQuestionOption extends Component {
+ @tracked showJexl = false;
+}
diff --git a/packages/form-builder/addon/components/cfb-form-editor/question.js b/packages/form-builder/addon/components/cfb-form-editor/question.js
index 2c1d3f0d2..e01317c40 100644
--- a/packages/form-builder/addon/components/cfb-form-editor/question.js
+++ b/packages/form-builder/addon/components/cfb-form-editor/question.js
@@ -363,11 +363,11 @@ export default class CfbFormEditorQuestion extends Component {
(changeset.get("options") || [])
.filter((option) => option.get("isDirty"))
.map(async (option) => {
- const { label, slug, isArchived } = option;
+ const { label, slug, isArchived, isHidden } = option;
await this.apollo.mutate({
mutation: saveOptionMutation,
- variables: { input: { label, slug, isArchived } },
+ variables: { input: { label, slug, isArchived, isHidden } },
});
}),
);
diff --git a/packages/form-builder/addon/components/cfb-form-editor/question/options.hbs b/packages/form-builder/addon/components/cfb-form-editor/question/options.hbs
index 4b540ab6b..db56cea9e 100644
--- a/packages/form-builder/addon/components/cfb-form-editor/question/options.hbs
+++ b/packages/form-builder/addon/components/cfb-form-editor/question/options.hbs
@@ -8,80 +8,13 @@
class="uk-list uk-list-divider uk-form-controls uk-margin-small-top"
>
{{#each @value as |row i|}}
-
-
-
-
- {{#if this.canReorder}}
-
- {{/if}}
- {{#if (is-empty row.id)}}
-
- {{else}}
-
- {{/if}}
-
-
-
-
-
-
-
-
-
-
+
{{/each}}