Closed henjoe closed 3 days ago
Changing the code from here:
if (ele.id === 'name') {
ele.value = "${__user.email}";
}
Works fine for my Grafana version v9.2.20 and BusinessForm 3.8.0
@henjoe That's correct. Business Forms replaces dashboard variables automatically.
I want to automatically fill in my "Text Input" to be the current user in Grafana.
On my element Value changed event I have the ff code:
but seems like the
context.grafana.replaceVariables("${__user.login}")
is not working. I received this error:What could be the temporary solutions for this kind of use case? Is there a way I can include the current login user in payload update request?
Version: 3.8.0 Grafana: V9.2.2 OS: Windows
Thank you.