+ Start a Discussion
Semira@gmail.comSemira@gmail.com 

actionRegion hides my field name

Hi I have tried to put the actionregion between pageBlockSectionItem. But it is still not showing my label. I'm not sure what else to try. I have tried researching but nothing helps. PLEASE PLEASE someone help. This is a little urgent. 

<apex:pageBlockSection >
        <apex:pageBlockSectionItem >
        <apex:actionRegion >
        <apex:inputField value="{!Contact.Contact_Type__c}" id="stage">
          <apex:actionSupport event="onchange" rerender="thePageBlock" status="status"/>
          </apex:inputField>
         </apex:actionRegion>
      </apex:pageBlockSectionItem>
      </apex:pageBlockSection>
Best Answer chosen by Semira@gmail.com
Arunkumar RArunkumar R
Can you try to change your actionRegion outside of pageblocksection?

<apex:actionRegion >
<apex:pageBlockSection >
 <apex:pageBlockSectionItem >
        
  <apex:inputField value="{!Contact.Contact_Type__c}" id="stage">
  <apex:actionSupport event="onchange" rerender="thePageBlock" status="status"/>
  </apex:inputField>

  </apex:pageBlockSectionItem>
 </apex:pageBlockSection>

</apex:actionRegion>


All Answers

Arunkumar RArunkumar R
Can you try to change your actionRegion outside of pageblocksection?

<apex:actionRegion >
<apex:pageBlockSection >
 <apex:pageBlockSectionItem >
        
  <apex:inputField value="{!Contact.Contact_Type__c}" id="stage">
  <apex:actionSupport event="onchange" rerender="thePageBlock" status="status"/>
  </apex:inputField>

  </apex:pageBlockSectionItem>
 </apex:pageBlockSection>

</apex:actionRegion>


This was selected as the best answer
Semira@gmail.comSemira@gmail.com
@Arunkumar R That still doesn't work. I have tried moving action region in and out. 
Arunkumar RArunkumar R
the below code is working,

<apex:pageBlockSection >
        <apex:pageBlockSectionItem >

        <apex:actionRegion >

         <apex:pageBlockSection >

        <apex:inputField value="{!Account.Name}" id="stage">
          <apex:actionSupport event="onchange" rerender="thePageBlock" status="status"/>
          </apex:inputField>

           </apex:pageBlockSection>

       </apex:actionRegion>

      </apex:pageBlockSectionItem>
 </apex:pageBlockSection>


Semira@gmail.comSemira@gmail.com
Thank you. I think there was a bug in my page. I started a fresh page and your first code seems to be working. Thank you very much. 
George M AlbrechtGeorge M Albrecht
@Arunkumar your solution just saved me a headache for the same problem. Thanks a bunch.