You need to sign in to do that
Don't have an account?
MetalOz
ReRender Simple Problem
I don't understand why this code won't work. I just want a comments box to appear if you select that the customer refused the survey...
<apex:actionRegion >
<apex:pageBlockSectionItem >
<apex:outputLabel value="Customer refused survey?" for="refused"/>
<apex:InputField value="{!Post_Install_Survey__c.Refused__c}" id="refused" required="true">
<apex:actionSupport event="onChange" reRender="rfcomments"/>
</apex:InputField>
</apex:pageBlockSectionItem>
</apex:actionRegion>
<apex:InputField value="{!Post_Install_Survey__c.Services__c}"/>
<apex:pageblockSectionItem id="rfcomments">
<apex:InputField value="{!Post_Install_Survey__c.Refused_Comments__c}" rendered="{!Post_Install_Survey__c.Refused__c == 'Yes'}"/>
</apex:pageblockSectionItem>
Hi MetalOz,
PageBlockSectionItem doesn't support reRendering.Hence you need to remove Post_Install_Survey__c.Refused_Comments__c out of pageBlockSectionItem
Another way would (possibly) be to wrap tthe pageblocksectionitem in an outputPanel and rerender that.
If you keep the Refused_Comments__c in the PageBlockSectionItem then you'll have the label pulled in correctly.
R.
Can you try moving the apex: actionregion tag to surrounding the offending outputpanel and/or remove it all together.
I
hmmm.
Do you have a messages tag on the page? <apex: messages/> ? If you don't you could try adding on to see whether your required="true" is stopping the submission. Could also try taking off the required flag all together first.
Previous email meant to remove the actionregion tag.
This should be quite easy to do so we're obviously missing something obvious....