From: Krzysztof B. <kb...@un...> - 2018-05-18 07:35:39
|
Hi Shiraz, W dniu 15.05.2018 o 11:11, Shiraz Memon pisze: > Hi Krzysztof, All, > > When an attribute is defined (under schema management) with the > minimum length equals 0 and set as mandatory in the registration form, > then unity should not let the user submit the registration form, if > the field is left empty by the user. Conversely another attribute is > defined with minimum length equals greater than 0 (e.g. 2) and set as > optional in the registration form, then the form should be > successfully submitted and accepted without any error dialogs/pop-ups. > In a nutshell, the registration forms should override the field > optionality defined in the schema management, what do you think? I think that the source of confusion is that we have two possible states: 0-length attribute value and no attribute value. In schema you can say that attribute with 0 length value is acceptable. But on UI - as registration - it is indistiguishable what was intended for empty cell: 0-length value or no value. We have ticket to fix it, most likely we will drop support for 0-length attribute values completely - what will simplify the situation, and the only control will be the optional or not setting on the form. Thanks, Krzysztof |