You need to sign in to do that
Don't have an account?

Default checkbox set to true not work on visual force page
Hi,
I have set the default value checkbox to TRUE, it works fine in standard edit page, however when we use custom VF page for create the record, the checkbox won't set to default values.
<apex:inputCheckbox value="{!account.TestCheckbox__c}"/>
My requirement is what default value configured in field configuration should be display in custom page dynmaically , hence selected ="true" attribure not helpful in my requirement.
Do you know how to display the default values of checbox in VF page?
Appreciate your response.
Thanks,
Hareesh
I have set the default value checkbox to TRUE, it works fine in standard edit page, however when we use custom VF page for create the record, the checkbox won't set to default values.
<apex:inputCheckbox value="{!account.TestCheckbox__c}"/>
My requirement is what default value configured in field configuration should be display in custom page dynmaically , hence selected ="true" attribure not helpful in my requirement.
Do you know how to display the default values of checbox in VF page?
Appreciate your response.
Thanks,
Hareesh
You need to use <apex:inputfield> as it respect default values set for field.I checked it and it works fine. for eg.
<apex:inputField value="{!Step__c.IsSkipped__c}"/>
Please let us know if it resolves your issue and mark this question as solved