2

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?

1 Answer 1

1

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:

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .