mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 07:22:32 -05:00
render blank option checkbox
This commit is contained in:
1 parent
cb1e9f2be4
commit
8aa219433b
2 files changed
+5
-2
No files matched your search
@@ -159,7 +159,9 @@ module Submissions
|
||||
if field['type'].in?(%w[multiple radio])
|
||||
option = field['options']&.find { |o| o['uuid'] == area['option_uuid'] }
|
||||
|
||||
value = Array.wrap(value).include?(option['value'])
|
||||
option_name = option['value'].presence || "Option #{field['options'].index(option) + 1}"
|
||||
|
||||
value = Array.wrap(value).include?(option_name)
|
||||
end
|
||||
|
||||
next unless value == true
|
||||
|
||||
Reference in new issue
Block a user