Custom Properties Null Value Issue

Posted by Community Admin on 04-Aug-2018 09:35

Custom Properties Null Value Issue

All Replies

Posted by Community Admin on 15-Apr-2013 00:00

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

Posted by Community Admin on 15-Apr-2013 00:00

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 

Posted by Community Admin on 18-Apr-2013 00:00

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.

Regards,
Atanas Valchev
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed