I have a persistable/non-persistable entity that gets passed into a microflow that validates the fields. The fields are validated in the backend and validation error messages are produced. Not all of them are displayed, just some of them. I can glean from the response from the server that the server does send back the validation payload for all the fields, e.g.
{"actionResult":"","datavalidation":[{"guid":"1125899906843925","errorFields":[{"name":"CSPD.Applicant_Countries","message":"This field is mandatory."},{"name":"MobileNumber","message":"This field is mandatory."},{"name":"Email","message":"This Email is invalid."},{"name":"NearestBeacon","message":"This field is mandatory."},{"name":"Street","message":"This field is mandatory."},{"name":"CSPD.Applicant_City","message":"This field is mandatory."}]}],"instructions":[{"target":"system","type":"refresh_object_list","args":{"mxobjects":[{"objectType":"CSPD.Applicant","guid":"1125899906843925","attributes":{"ThirdName_ar":{"value":""},"FirstName_ar":{"value":""},"Email":{"value":""},"CSPD.Applicant_Eservice":{"value":""},"CSPD.Applicant_District":{"value":""},"NationalID":{"value":"00000000"},"CSPD.Applicant_Registration":{"value":"7881299347898669"},"FamilyName_ar":{"value":""},"ThirdName_en":{"value":"Mary"},"CSPD.Applicant_City":{"value":""},"changedDate":{"value":1482067816566,"readonly":true},"ImportManagement.CurrnetInbox":{"value":""},"NearestBeacon":{"value":""},"Street":{"value":""},"FirstName_en":{"value":"John"},"CSPD.Applicant_Country":{"value":""},"System.changedBy":{"value":"7881299347898669","readonly":true},"MiddleName_ar":{"value":""},"CSPD.Applicant_Neighborhood":{"value":""},"FamilyName_en":{"value":"Mcdonald"},"MobileNumber":{"value":""},"CSPD.Applicant_Countries":{"value":""},"createdDate":{"value":1482067816565,"readonly":true},"MiddleName_en":{"value":"John"},"System.owner":{"value":"7881299347898669","readonly":true},"BuildingNumber":{"value":""},"WorkNumber":{"value":""}}}]}}]}
Inspecting the dom nodes has shown that the validation messages do in fact get created in the dom structure, but maybe in the wrong place? This is the dom structure, with a validation message highlighted that is displayd (1), and one that is not (2):
If i move the second validation message out of the <input> node, then it is displayed.
How can I make validation messages appear on the front end?
Thankyou