# 允许使用输入值作为手动映射的“调用工作流”布尔类型字段

**URL:** <https://meta.discourse.org/t/allow-use-of-input-for-value-of-manually-mapped-call-workflow-boolean-type-fields/408827>\
**Category:** Feature\
**Tags:** completed, workflows\
**Created:** [2026年七月29日 15:00 UTC](https://meta.discourse.org/t/allow-use-of-input-for-value-of-manually-mapped-call-workflow-boolean-type-fields/408827 "2026-07-29T15:00:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2026年七月30日 09:03 UTC](https://meta.discourse.org/t/allow-use-of-input-for-value-of-manually-mapped-call-workflow-boolean-type-fields/408827/4 "2026-07-30T09:03:46Z")

</div>

感谢报告 @per1234 👍 将被添加在

> <https://github.com/discourse/discourse/pull/42153>
>
> Stacked on \`workflows-boolean-assignment-expressions\` — only the last commit is …new. Meant as follow-ups to review together with (or fold into) that branch before it ships.
> 
> Previously, \`BooleanControl\` kept a local copy of the plain/dynamic value conversion (so fixes to \`ExpressionWrapper\`'s converters silently did not apply to booleans), the wrapper carried \`@expressionMode\`/\`@modeItems\`/\`@onModeChange\`/\`@modeControlClass\` override hooks that only this one control used, and the full-width control wrapper defeated FormKit's end-alignment — the plain toggle sat stranded mid-row with the mode switcher at the far edge.
> 
> This change folds the boolean conversion into \`plainValueForModeToggle\` beside the existing array handling (preserving the \`={{ true }}\` literal round-trip your tests pin down), removes the now-unused wrapper hooks, derives the switcher positioning in CSS from FormKit's own \`form-kit\_\_field-toggle\` class instead of a component arg, and re-aligns the toggle flush to the field's end.
> 
> All the tests on the base branch pass unchanged except one assertion updated to the new positioning contract (\`--toggle\` class → rendered inside \`form-kit\_\_field-toggle\`).

_抄送 @renato_

---

_[View the full topic](https://meta.discourse.org/t/allow-use-of-input-for-value-of-manually-mapped-call-workflow-boolean-type-fields/408827)._
