WindmillWWindmill
Powered by
DeepakD
Windmill•13mo ago•
11 replies
Deepak

Unable to Reset Form for Object-Type Fields in JSON Schema-Based Form

I am creating a form using a JSON schema with the following structure:

{
"properties": {
"payload": {
"type": "object",
"description": "The base payload structure required to trigger the agent. This is a JSON object.",
"title": "Agent Payload"
},
"inputFieldName": {
"type": "string",
"description": "The key to add dynamically to the payload structure. The value for this key will be input through the chat interface.",
"title": "Additional Field Name",
"placeholder": "Enter the key to include in the payload (e.g., input)"
}
},
"required": ["payload", "inputFieldName"]
}

When I reset the form, the input field for the string type (inputFieldName) resets successfully, but the UI does not reset for the object type (payload). While I can see that the value of the payload field is being cleared programmatically, this change is not reflected in the UI. It appears that the component's internal state is not updating properly for object-type fields.

Has anyone faced a similar issue, or could someone guide me on how to ensure the UI reflects the reset action for object-type fields?
WindmillJoin
3,362Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Nested JSON schema required fields
inakiabtIinakiabt / help
3y ago
App JSON Schema
fooosieeeFfooosieee / help
2mo ago
Unable to pass any var to object field for subflow
TreyTTrey / help
4mo ago
Unable to pass the global results object to inline script
TreyTTrey / help
5mo ago