Submit

Submit action type is used for submitting forms. Currently forms are available for Object Cards and for Adaptive Cards.

Default behavior: submits the form if "sap.card"/configuration/actionHandlers/submit is provided. See the Object Card Form Inputs sample and the Actions Handlers documentation.

Additionally the form can be submitted through an Extension. See the Object Card Form Inputs With Extension sample.

Related Information

Examples

Example how to trigger Submit action from Object Card

"sap.card": {
	"type": "Object",
	"header": {
		...
	},
	"configuration": {
		"actionHandlers": {
			"submit": {
				"url": "./MOCK.json",
				"method": "GET",
				"parameters": {
					"status": "approved",
					"reason": "{form>/reason/key}",
					"reasonText": "{form>/reason/value}",
					"comment": "{form>/comment}"
				}
			}
		}
	},
	"data": {
		"json": {
			"reasons": [
				{
					"id": "reason1",
					"title": "Reason 1"
				},
				{
					"id": "reason2",
					"title": "Reason 2"
				}
			]
		}
	},
	"content": {
		"groups": [
			{
				"alignment": "Stretch",
				"items": [
					{
						"id": "reason",
						"label": "Reason",
						"type": "ComboBox",
						"placeholder": "Select",
						"item": {
							"path": "/reasons",
							"template": {
								"key": "{id}",
								"title": "{title}"
							}
						}
					},
					{
						"id": "comment",
						"label": "Comment",
						"type": "TextArea",
						"rows": 4,
						"placeholder": "Comment"
					}
				]
			}
		]
	},
	"footer": {
		"actionsStrip": [
			{
				"text": "Submit",
				"buttonType": "Accept",
				"actions": [
					{
						"type": "Submit"
					}
				]
			}
		]
	}
}
Try it Out