You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Forms Viewer plugin filtering and column ordering
- Fix FORM_LABEL parameter in descriptor.json (was empty, now properly configured)
- Add support for specific field names in COLUMN_ORDER
- Users can now specify individual fields: "SITE_NOTE_TITLE, SITE_NOTE_DETAILS"
- Or use generic keywords: "formDetails" to auto-expand all fields
- Update @ofs-users/plugin from ^1.5.0 to ^1.5.1
- Improve README documentation with examples for both approaches
- Clean up excessive debugging logs
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
-**Note**: When you specify `formDetails`, `activityDetails`, or `resourceDetails`, the plugin automatically creates a column for each field found in the data. For example, if your forms have `SITE_NOTE_TITLE` and `SITE_NOTE_DETAILS` fields, specifying `formDetails` will create two columns with those names.
63
+
-**Note**: When you specify `formDetails`, `activityDetails`, or `resourceDetails`, the plugin automatically creates a column for each field found in the data. Alternatively, you can specify individual field names directly to control exactly which fields appear and in what order.
62
64
63
65
### Example Configurations
64
66
@@ -67,37 +69,48 @@ When both are provided, `openParams` values override `securedParams` values.
// Open plugin showing all forms with generic formDetails expansion
106
+
openPlugin({
107
+
plugin:"formsViewer",
108
+
openParams: {
109
+
COLUMN_ORDER:"time,user,formLabel,formDetails"
97
110
}
98
111
});
99
112
100
-
// Open plugin showing all forms with different columns
113
+
// Open plugin showing all forms with activityDetails fields
101
114
openPlugin({
102
115
plugin:"formsViewer",
103
116
openParams: {
@@ -129,19 +142,26 @@ The plugin can be opened from:
129
142
130
143
### Form Details Display
131
144
132
-
The plugin dynamically creates columns based on the actual fields present in the submitted forms:
145
+
The plugin supports two approaches for displaying form fields:
133
146
134
-
-**Dynamic Columns**: When you include `formDetails` in `COLUMN_ORDER`, the plugin scans all forms and creates a column for each unique field found
147
+
#### 1. Generic Keywords (Dynamic Discovery)
148
+
When you include `formDetails`, `activityDetails`, or `resourceDetails` in `COLUMN_ORDER`, the plugin scans all forms and creates a column for each unique field found.
0 commit comments