Open m4v3rickmts opened 1 week ago
@m4v3rickmts Do you create payload using custom code with if
statement? If yes, please remove it to send element's values as is.
@mikhail-vl I set the "Custom Code" (Initial Request) field to empty but still the same issue. I tried it with both "Custom Code" fields but the error with "undefined" won't be solved.
Any ideas?
@m4v3rickmts I will try to reproduce and get back to you.
Meanwhile I am using a workaround:
isactive=case when '${payload.isactive}'='true' then true else false end
I check if it is true and update the table with true, else with false. But I am sure it would be much more convenient if the radio group return was either true or false.
Git Issue: Boolean Form Submission Error in Business Forms Panel 4.8.0 with Grafana 11.1.0
Summary
When using the Business Forms Panel (v4.8.0) in Grafana (v11.1.0), submitting a boolean field with a value of
false
results in an error. This issue arises due to theundefined
value being sent in the update statement forfalse
.Steps to Reproduce
false
.true
and submit: ✅ Submission succeeds.false
and submit: ❌ Submission fails.Observed Behavior
true
, the update statement correctly sendstrue
as the value.false
, the update statement sendsundefined
, resulting in an error.Expected Behavior
false
when the boolean field is set tofalse
, as displayed correctly in the "Update Confirmation Window".Environment
Additional Notes
The issue seems to originate from how the form panel processes and serializes boolean values during submission. The discrepancy between the "Update Confirmation Window" and the actual update statement may offer a clue.
Request
Can this behavior be verified and addressed? If additional debugging or testing is needed, please provide guidance.
Thanks