Bonita 7.3.1 Select Widget Bug ?
In a sample form if i replace a text widget by a select widget I have the following exception :
Error while validating expected inputs
Expected input [deliveryTerms] is missing
the data is nullable, the widget is not mandatory and i have this exception just if i don't select a value. The same think with text or text area work fine.
Anyone have an idea ?
This is a problem with your Contract.
Check how you've built the page and return the correct value.
What sample form are you using? I'd like to check if I get the same behavior on my side.
The contract is not linked to the widgets directly. There is no specific contract for the widget Select by example. The contract will check the structure and content of the data passed by REST Api call generated by the form on the submit action. If the structure is not as expected, the engine will return an error.
So in your case, you have to make sure that even if no value are selected in your Select widget, you still pass the property deliveryTerms in your JSON response. The value for the property would be empty or NULL if no selection.