VolkovLabs / business-forms

The Business Forms panel is a conceptually new plugin for Grafana. It is the first plugin that allows inserting and updating application data, as well as modifying configuration directly from your Grafana dashboard.
https://docs.volkovlabs.io
Apache License 2.0
86 stars 10 forks source link

Checkbox list with custom options initial values #428

Closed imbence closed 4 months ago

imbence commented 5 months ago

The new form element Type Checkbox list with custom options does not load the initial values from the specified Field Name. If I change the form element type to for example Multi select with custom options it works and adds the selection.

2024-06-27_16-48 2024-06-27_16-46

Is there a different way to get the initial values in?

vitPinchuk commented 5 months ago

@imbence Thank you for the question

I tried to reproduce the problem

The data display using Query Field is correct for the two types of elements. Please recheck your data or provide more information to reproduce the issue.

Thank you

image

image

imbence commented 4 months ago

Hey, thank you for the answer, I meant the Initial values not filling in and not the options to choose from. So if we look at your example under "Initial Request" change "Initial Action" to "Data Source". After setting up the "Initial Request Payload", back in the "Form Element" the "Field Name" option becomes available, and if I fill that in, then it only works with the "Multi select with custom options" Form Element Type and not with Type Checkbox.

2024-07-01_20-22 2024-07-01_20-25

ashleymcdonald commented 4 months ago

+1 i am also having the same issue, is there any eta to have it fixed? My issue is also with the Postgres datasource