[SalesForce] Nillable for required attribute

I'm wondering meaning of "nillable" used in the required attribute below:

  <apex:inputField value="{!Case.Invoiced_Tons__c}" required="{!not($ObjectType.Case.fields.Invoiced_Tons__c.nillable)}"/>

When this field will be required?What is nillable?

Best Answer

This is a isNillable() method of the DescribeFieldResult Schema class:

Returns true if the field is nillable, false otherwise. A nillable field can have empty content. A non-nillable field must have a value for the object to be created or saved.

Read more about all methods here: DescribeFieldResult Class

And here are related posts: