cancel
Showing results for 
Search instead for 
Did you mean: 

Form cannot be saved if certain elements are used

bojanah
Champ in-the-making
Champ in-the-making
Hi,

We are trying to create forms with RadioButtons or Dropdown elements in activiti-app. When element is added, form can be saved.
However, if we try to define values (options) for elements, form cannot be saved (Save editor just hangs, we can just cancel operation) and there is no error in tomcat log.

Is this something related to beta version, or we are doing something wrong?

Thanks,
Bojana

2 REPLIES 2

sibok666
Champ in-the-making
Champ in-the-making
You have to take a look at your browser log, in that way you could get more details, from whats going on.

baya
Champ in-the-making
Champ in-the-making

I have also had this issue. The error message in the browser is something like this :

HTTP Status 400 -


type Status report

message

description The request sent by the client was syntactically incorrect.

The underlying problem looks like a bug in the form representation request payload. The sample request I have pasted below shows that an unexpected "sizeY" field is added to the drop down field definition. I say it's unexpected because the OptionFormField in the form-model module doesn't have an equivalent field and that seems to be the reason why the request can't be processed. It looks to me like sizeY should be a field of the params object.

{"reusable":false,"newVersion":true,"comment":"","formRepresentation":{"id":5,"name":"Perform Initial Troubleshooting","key":"PerformInitialTroubleshooting","description":"Perform Initial Troubleshooting","version":4,"lastUpdatedBy":"admin","lastUpdated":"2016-12-20T14:54:08.271+0000","formDefinition":{"name":"Perform Initial Troubleshooting","key":"PerformInitialTroubleshooting","fields":[{"fieldType":"ExpressionFormField","id":"label","name":"Label","type":"expression","value":null,"required":false,"readOnly":false,"overrideId":false,"placeholder":null,"layout":null,"expression":"Customer Name\n${customerName}","params":{}},{"fieldType":"ExpressionFormField","id":"label","name":"Label","type":"expression","value":null,"required":false,"readOnly":false,"overrideId":false,"placeholder":null,"layout":null,"expression":"Phone Number\n${phoneNumber}","params":{}},{"fieldType":"ExpressionFormField","id":"label","name":"Label","type":"expression","value":null,"required":false,"readOnly":false,"overrideId":false,"placeholder":null,"layout":null,"expression":"Email Address\n${emailAddress}","params":{}},{"fieldType":"ExpressionFormField","id":"label","name":"Label","type":"expression","value":null,"required":false,"readOnly":false,"overrideId":false,"placeholder":null,"layout":null,"expression":"Fault Description\n${faultDescription}","params":{}},{"fieldType":"OptionFormField","id":"productGroup","name":"Product Group","type":"dropdown","value":"Please choose one...","required":true,"readOnly":false,"overrideId":true,"placeholder":null,"layout":null,"optionType":null,"hasEmptyValue":true,"options":[{"id":null,"name":"Please choose one..."},{"name":"4G Business"},{"name":"4G Residential"}],"params":{},"sizeY":1}],"outcomes":[{"id":null,"name":""}]}},"formImageBase64":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAABsCAYAAADQUo+tAAAPCklEQVR4Xu2dB4xUVRSGz1KXuoL0jgqGXld670QQKUJEhEAoQsAFpRN6CaEmsKGEbgIEkA0oCEgNAqJSQksI1dCRDtKL+Y9ZXWDhzZudmX33zn+TzS477957znfu/Nx5+97/Ih49evRC2EiABEjAAAIRFCwDqsQQSYAElAAFiwuBBEjAGAIULGNKxUBJgAQoWFwDJEACxhCgYBlTKgZKAiRAweIaIAESMIaAo2A9f/7cmGQYqDcIpEiRwhuBMArrCDgK1l9//SXZs2e3LnEmFBwCXC/B4cpR/yXgKFjXr1+Xd999l7xIwCcCXC8+YeJBfhJwFKzbt29LVFSUn8OzW7gRuHXrlrzzzjvhljbzDREBV4L17NkzadeunaxYsUIiIiL8CvHOnTuSKVMm2bt3r1SuXPmtYxw4cEBWr14txYoV03kTOzfi6xtk1qxZ8tVXX8mMGTOkd+/eb5w3JiZGpk+f7ldu7CTiaz3IigT8IeBKsPr37y+TJk2Sp0+fyqNHj2TdunXy22+/ScOGDeXJkyeyZcsWFZfff/9d8ufPL9euXZMPP/xQ7t27JydPnpQOHTpI8eLFpUWLFtKvXz8pU6aMjBkzRkqWLCmnTp1SQRoyZIjExsbKuHHjpFu3bjJ16lRZuHChVKlSReLi4uTIkSPSsmVLSZUqlTx+/Fh/N3bsWD1mwIAB2g+vTZkyRcfC16BBgyRr1qxSpEgR2bVrl2TJkkVq1qwpx44d0zHwkffixYtSsGBBOXHihEycONEfluwjFCwuguAScCVY9erVU5HCXw7xRl+7dq2KR8qUKVVs8Kb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