Thanks, Bobby. I studied the parameters provided by that link to begin my quest. I didn't see a way to filter chart data using custom user meta fields. Did I miss something?
I didn't see any reference to charts, but could the code snippet suggested in this tutorial solve the problem?
https://connect.formidableforms.com/user-tutorials/display-content-based-on-user-meta-value/
Good point. So you want to show data specific to a user with a particular meta field value then or are these graphs to be visible to the currently logged in user with a particular meta field value?
We want to show data specific to a user with a particular meta field value.
For instance, we want to limit the graph data to records where the "District" form field matches the user meta field "user_district". We do not want a school site person to see data (table or chart) across an entire district. For school site personnel, we would display chart data where the "School Site" form field is equal to the user meta field user_school_site.
Thanks, Victor. I'll give it a whirl!
I'm pretty sure I figured it out. It seems to be as easy as:
[frm-graph fields="xxx" type="column" data_type="count"][user_meta key=user_school_site][/frm-graph]
[frm-graph fields="xxx" type="column" data_type="count"][user_meta key=user_district][/frm-graph]
It would be nice to automagically inherit a view filter by clicking a box but this isn't too cumbersome.
Um. Never mind. It does NOT seem to be working. Ugh!
Thanks, Shawn. I am saving the meta value in a hidden field within the form but I can't see how that allows me to filter a chart. I have no problems filtering data views using the custom user meta fields. I just can't find a way to apply a custom user meta field to filter a chart.
Please login or Register to submit your answer