A dynamic input group is a set of input fields that can be added, removed, or modified in real-time based on user interactions or API response . This feature allows for the creation of optional fields and can hide them when not in use, providing flexibility and enhancing user experience.
📌For example When creating a new record in an airtable, dynamically fetch and display columns inside an input group. Users can then input data only into the columns they need, making the process efficient and user-friendly using following steps and achieve result :
Take a get API for get all columns from airtable API documentation
Configure it in javascript API call code
Return an array containing a object containing key,label,type,help for columns
key is used to access this specific column value ex: ${context.inputData.inputgroupName.coloumnName}
Label shown on the UI
type decide type of the field using if condition in input group source code you can change type for a field also
help text can be static or dynamic. Handle source code
This code can be added through the GUI or via JSON by including a key “source” with the escaped code as its value. Use EscapeJSON to properly format the code for JSON.
Response :
it returns a key-value pair. If the key for the column is "name", the returned value will be in the format {site: "site_id"}. To use this value, the path is ${context.inputData.inputgroupName.coloumnName}: