function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shravya Rama 9Shravya Rama 9 

Immeadite = true not working even with action region

<apex:inputField label="Fahrer" value="{!res.Fahrer__c}"   />
<apex:commandButton value="Retrieve User Details" rerender="out"  immediate="true"  >
<apex:actionSupport event="onclick" action="{!LoadingUserDetails}"   />

<apex:pageBlockSection id="out"> 
<apex:inputField label="Contact Nummer" value="{!res.Contact_Number__c}" rendered="true" id="out" />             

<apex:inputField label="Starts at" value="{!Reservation__c.Start__c}"  required="true"/>
<apex:inputField label="Ends at" value="{!Reservation__c.End__c}" required="true"/>

public pagereference LoadingUserDetails(){

currentuser=[Select Id,phone from User where Id=:res.Fahrer__c limit 1];
res.Contact_Number__c = ;

return null;
Rerendering works fine without validation rules but not with. so I chose immeadite = true wrapped in active region but still it doesnt work. Can somebody suggest a solution please.
Hi Shravya Rama
You have try this 
<apex:actionSupport event="onclick" action="{!LoadingUserDetails}"  immediate="true" />
if this help you please mark as solved.
Shravya Rama 9Shravya Rama 9
Hello Hemant,
I have tried all the alternatives. Also tried calling the function directly from the command button without action support but is still in vain.