Emulates the behaviour of the /formsservice/http/processsubmission endpoint, allowing form submissions to be conducted via JSONRPC for private forms. A DATABASE save action is performed regardless of whether one exists on the page or not, and the id of the saved object is returned as updatedObjectId.
This method is for use within iCM for article extra forms only.
Parameters
Name | Type | Description |
---|---|---|
pageSessionId | UUID (str enc.), required | The pageSessionId, as submitted with the form |
sessionId | UUID (str enc.), required | The formSessionId, as submitted with the form |
nonce | UUID (str enc.), required | The nonce, as submitted with the form |
formData | Map, required | Form data in the format of: |
objectId | Long, optional | Id of the iCM object containing form data to load, likely saved by a DATABASESAVE action |
-or- | ||
objectLabel | String, optional | Label of the iCM object containing form data to load |
objectType | String, optional | Type of the iCM object containing form data to load |
Example Request
{
"id": 20,
"jsonrpc": "2.0",
"method": "processJSONRPCSubmission",
"params": {
"objectId": 221,
"nonce": "58843236-171d-4b5c-820a-4ba64fcb0d87",
"sessionId": "e7899179-5b1f-4434-97c2-261c58deead0",
"pageSessionId": "0f7ce3a6-2719-49f9-9497-a22cb3041b98",
"formData": {
"EXTRAFORM2_FORM_": "1",
"EXTRAFORM2_SESSIONDATA": "",
"EXTRAFORM2_NONCE": "58843236-171d-4b5c-820a-4ba64fcb0d87",
"EXTRAFORM2_SESSIONID": "e7899179-5b1f-4434-97c2-261c58deead0",
"EXTRAFORM2_PAGESESSIONID": "0f7ce3a6-2719-49f9-9497-a22cb3041b98",
"EXTRAFORM2_FIELD1": "A",
"EXTRAFORM2_FIELD2": "Yes",
"EXTRAFORM2_FIELD3": "Hidden",
"EXTRAFORM2_FIELD4": "15/06/2015"
}
}
}
Example Response
{
"id": 20,
"jsonrpc": "2.0",
"result": {
"result": {
"nonce": "58843236-171d-4b5c-820a-4ba64fcb0d87",
"sessionId": "e7899179-5b1f-4434-97c2-261c58deead0",
"pageSessionId": "0f7ce3a6-2719-49f9-9497-a22cb3041b98",
"actionResults": {
"previousPageName": "",
"results": {},
"currentPageInstance": "1",
"previousPageInstance": "",
"currentPageName": "PAGE1"
},
"updatedObjectId": 221
}
}
}