i am using action function as i need values of form in my controller after an on change event is fired.but there are some required fields also.when i change some value in dropdown action function is called and it gives the required validation error on other required fields .when i fill them and again onchange event is fired ,i get the changed value in backend.but i want that it should avoid the required validation error on other fields for that i use immediate="true " with action function but now it does not gives required error but in my controller method i did not get values.whats the reason for that .how can i overcome this?
<apex:actionRegion >
<!-- Displaying Personal Data section -->
<apex:repeat value="{!contactInformation}" var="contact" rendered="{!contactInformation.size>0}">
<apex:repeat value="{!ContactFields}" var="contactInfo">
<apex:pageBlockSection columns="2" title="Contact Information">
<apex:repeat value="{!Fields}" var="current">
<apex:inputField styleClass="country" label="Country" value="{!contact[current.fieldPath]}" onChange="dynamicConditions();" required="{!OR(current.required, current.dbrequired)}"/>
</apex:repeat>
</apex:pageBlockSection>
</apex:repeat>
</apex:repeat>
<apex:commandButton title="Save" value="Save" action="{!save}"/>
</apex:actionRegion>
<apex:actionFunction name="dynamicConditions" action="{!dynamicConditions}"/>