Custom Properties Null Value Issue
We’ve noticed that even after specifying custom fields as mandatory SiteFinity doesn’t prompt users to specify these values while uploading the content. Because of this sometimes we see null reference exception while reading values using obj.GetValue("FieldName") (We are doing some LINQ operation on entire result set).
We even tried setting predefined value to avoid null refrence exception but no luck :(
Please help,
Parimal
We are able to manage null value exception by using obj.GetValue<string>("FieldName") instead of using obj.GetValue("FieldName").ToString().
However is there any way I can force users to provide this information at the time of uploading videos/documents?
Thanks,
Parimal
Hi Parimal,
Currently this is not possible. The custom field will appear for editing after the item has been uploaded and is opened for editing, then it will be required and the item cannot be published again until it is filled.
I apologize for the inconvenience.