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

<apex:inputField> for text is rendering as a disabled Picklist and a default selectOption as - <option value="__">-- None--</option>
Hello there,
I have created a VF page that iterates through a list of fields for an object. I have made dynamic binding of <apex:inputField> with object and its corresponding fields.
A <apex:inputField> for text is rendering as a disabled Picklist and a default selectOption as - <option value="__">-- None--</option>. This thing is happening for a particular field only i.e. (5th field only no matter what the data type of that field would be).
Here is the VF snippet
Can someone shed some light here?
Thanks in advance.
I have created a VF page that iterates through a list of fields for an object. I have made dynamic binding of <apex:inputField> with object and its corresponding fields.
A <apex:inputField> for text is rendering as a disabled Picklist and a default selectOption as - <option value="__">-- None--</option>. This thing is happening for a particular field only i.e. (5th field only no matter what the data type of that field would be).
Here is the VF snippet
<apex:outputpanel > <apex:pageblocksection rendered="{!IF(strApplicationMode != 'view', TRUE, FALSE)}"> <apex:repeat var="field" value="{!IF(IsIndividual, $ObjectType.Contact.FieldSets.CommunityIndividualProfile ,$ObjectType.Contact.FieldSets.CommunityContactFieldSet)}"> <apex:inputfield value="{!UserContacRecord[field]}" rendered="{!field.FieldPath != 'MailingCountry' && field.FieldPath != 'MailingState' && field.FieldPath != 'OtherCountry' && field.FieldPath != 'OtherState' && (($ObjectType['Contact'].Fields[field].Type == 'textarea' && NOT($ObjectType['Contact'].fields[field].htmlFormatted)) || ($ObjectType['Contact'].fields[field].Type != 'textarea'))}" required="{!OR(field.required, field.dbrequired)}" /> <apex:inputfield value="{!UserContacRecord[field]}" rendered="{!(!isSCPLEnable) && (field.FieldPath == 'MailingCountry' || field.FieldPath == 'MailingState' || field.FieldPath == 'OtherCountry' || field.FieldPath == 'OtherState')}" required="{!OR(field.required, field.dbrequired)}" /> <apex:inputfield value="{!UserContacRecord[field+'Code']}" label="{!$ObjectType['Contact'].Fields[field].Label}" rendered="{!isSCPLEnable && (field.FieldPath == 'MailingCountry' || field.FieldPath == 'MailingState' || field.FieldPath == 'OtherCountry' || field.FieldPath == 'OtherState')}" required="{!OR(field.required, field.dbrequired)}" /> <apex:inputtextarea styleclass="ckeditor" label="{!$ObjectType['Contact'].Fields[field].Label}" richtext="false" id="inputRichTextAreaId" value="{!UserContacRecord[field]}" rendered="{!($ObjectType['Contact'].Fields[field].Type) == 'textarea' && $ObjectType['Contact'].fields[field].htmlFormatted}"> <script> initializeCkeditor(); </script> </apex:inputtextarea> </apex:repeat> </apex:pageblocksection> </apex:outputpanel >
Can someone shed some light here?
Thanks in advance.