Register custom widget with XFA Scripting Engine
When the custom widget code is ready, register the widget with the scripting engine by using registerConfigAPI for Form Bridge. It takes widgetConfigObject as input.
widgetConfigObject
The widget configuration is provided as a JSON object (a collection of key value pairs) where the key identifies the fields and value represents the widget to use with those fields. A sample configuration looks like:
where “identifier” is a jQuery CSS selector that represents a particular field, a set of fields of a particular type, or all fields. The following lists the value of the identifier in different cases:
| Type of identifier | Identifier | Description |
|---|---|---|
| Particular field with name fieldname | Identifier:“div.fieldname” | All fields with the name ‘fieldname’ are rendered using the widget. |
| All fields of type ‘type’(where type is NumericField, DateField, and so on.): | Identifier: “div.type” | For Timefield and DateTimeField, the type is textfield as these fields are not supported. |
| All fields | Identifier: “div.field” |
Was this content helpful?
Announcements
Get hands-on with agentic AI.
Explore how AI agents work together through real examples and hands-on practice. Join your local User Group to design an agent workflow with your peers and leave with a practical framework you can apply to your own work.
Find an eventAdobe Experience Manager Roadmap Webinar, Part 2 (Forms, Cloud & Managed Services) - Americas & EMEA
Preview the AEM Forms, Cloud, and Managed Services roadmap. Ask the team live.
Adobe Experience Manager Roadmap Webinar, Part 2 (Forms, Cloud & Managed Services) - Americas & APAC
Preview the AEM Forms, Cloud, and Managed Services roadmap. Ask the team live.