sections_edit
Sections edit allows editing/updating an existing section in the widget according to the action performed. It is one of the response types of the action handler. This response type contains a list of existing sections that have to be edited and allows a success/failure banner.
Parameter | Description | Datatype | Max Limit |
type | Type of response - sections_edit | String | - |
sections | List of sections | List | 5 |
success_banner | Text to be displayed on the banner if the action was a success | String | - |
failure_banner | Text to be displayed on the banner if the action was a failure | String | - |
refresh_section | whether to refresh the parent section by invoking the action handler with action type navigate_back while navigating back or to show the initial data itself. | Boolean | - |
pending | The pending action is valid for 3 minutes. ie, the callback API for a particular pending action should be invoked within 3 minutes. Learn more. | Boolean | - |
Sample Script (Deluge):
response.put("type","sections_edit");
fieldSet = {{"label":"Contact Owner","value":"Patricia"}};
fieldsetSection = {"name":"fieldset","layout":"fieldset","title":"Field set","data":fieldSet,"actions":{{"label":"Change name","name":"nameChange"}}};
sections = {fieldsetSection};
response.put("sections",sections);
response.put("success_banner","Name changed successfully");
}