Agent form fields with pre-filled examples cannot be send as null
Jordi-m opened this issue · comments
I'm trying to use the agent webforms to send null values to the agent. With regular fields (string/int/etc) this works fine by just keeping that field empty (empty string). If the expected input type is a java object, the agent form fields are pre-fileld with an example structure. The purpose seems to be usefull.
However, I cannot really remove the default value for those java object examples. I can empty the form field and submit the form, but the java object example string is placed back into the form an submitted with the request. The results in not receiving the expected null value in the agent form.
Steps to reproduce in screenshots:
I added the first couple of field manually (by default they are empty):
... removed the default values for the java objects:
... submitted the form
... default value showing up again in the form and in the JSON-RPC request
Fixed in Master.