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
kannapapikannapapi 

rerender not working help plz...

<apex:page name="Queue Criteria" tabStyle="Contact" id="Page"  title="Criteria"  standardController="Queue_Criteria__c" extensions="QueueCriteriaStdController">
    <apex:form id="Form" title="Criteria">
        <apex:sectionHeader title="Queue Criteria" subtitle="New Queue Criteria" id="PSHeader"/>
        <apex:pageBlock title="Queue Criteria Edit" id="PBlock" tabStyle="Contact" mode="edit">
            <apex:pageMessages >
            </apex:pageMessages>
            <apex:pageBlockButtons >
                <apex:commandButton value="Save" action="{!save}" />
                <apex:commandButton value="Save & New" />
                <apex:commandButton value="Cancel" action="{!cancel}" />
            </apex:pageBlockButtons>
            <apex:pageBlockSection title="Information" columns="2" id="PBSection" collapsible="false">
                <apex:inputField value="{!Queue_Criteria__c.Name__c}" required="true"/>
                <apex:inputField value="{!Queue_Criteria__c.Contact_Name__c}"/>
            </apex:pageBlockSection>
            <apex:pageBlockSection columns="1"  collapsible="false" >
                <apex:selectList > value="{!Queue_Criteria__c.Operator__c}" required="true" >
                <apex:actionSupport event="onmouseover" reRender="UBV2"/>
                </apex:selectList>
                <apex:inputField value="{!Queue_Criteria__c.Bounded_Value__c}"/>
                <apex:inputField value="{!Queue_Criteria__c.UnBounded_Value1__c}" styleClass="hidden"/>
                </apex:pageBlockSection>
                                <apex:outputPanel id="UBV2"  >
                                <apex:pageBlockSection id="pbs" rendered="{!IF((Queue_Criteria__c.Operator__c=='Between'),true,false)}" >
              
                <apex:inputField value="{!Queue_Criteria__c.UnBounded_Value2__c}"  />                  
                               </apex:pageBlockSection>
                                </apex:outputPanel>

                    </apex:pageBlock>
    </apex:form>     
    <script>
    function callUBV()
    {
    var Opr=document.getElementById('Page:Form:PBlock:j_id32:j_id33').value;
           
    }
    </script>
</apex:page>

Dhaval PanchalDhaval Panchal

I think there is some syntax error in below line

 

<apex:selectList > value="{!Queue_Criteria__c.Operator__c}" required="true" >

 

Please see below working sample code.

<apex:selectList id="ddlAccount" size="1" multiselect="false" value="{!selectedAccount}">
	<apex:selectOptions value="{!Accounts}"/>
	<apex:actionSupport action="{!selectAccount}" event="onchange" reRender="pbAccDetail,pbContacts"/>
</apex:selectList>

 

kannapapikannapapi
<apex:page name="Queue Criteria" tabStyle="Contact" id="Page" title="Criteria" standardController="Queue_Criteria__c" extensions="QueueCriteriaStdController">
<apex:form id="Form" title="Criteria">
<apex:sectionHeader title="Queue Criteria" subtitle="New Queue Criteria" id="PSHeader"/>
<apex:pageBlock title="Queue Criteria Edit" id="PBlock" tabStyle="Contact" mode="edit">
<apex:pageMessages >
</apex:pageMessages>
<apex:pageBlockButtons >
<apex:commandButton value="Save" action="{!save}" />
<apex:commandButton value="Save & New" />
<apex:commandButton value="Cancel" action="{!cancel}" />
</apex:pageBlockButtons>
<apex:pageBlockSection title="Information" columns="2" id="PBSection" collapsible="false">
<apex:inputField value="{!Queue_Criteria__c.Name__c}" required="false"/>
<apex:inputField value="{!Queue_Criteria__c.Contact_Name__c}"/>
</apex:pageBlockSection>
<apex:pageBlockSection columns="1" collapsible="false" >
<apex:inputField value="{!Queue_Criteria__c.Operator__c}" required="false"/>
<apex:inputField value="{!Queue_Criteria__c.Bounded_Value__c}"/>
<apex:inputField value="{!Queue_Criteria__c.UnBounded_Value1__c}" styleClass="hidden"/>
<apex:inputField value="{!Queue_Criteria__c.UnBounded_Value2__c}" rendered="{!JSENCODE(Queue_Criteria__c.Operator__c) = 'Between'}"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
&lt;script&gt;
function callUBV()
{
var Opr=document.getElementById('Page:Form:PBlock:j_id32:j_id33').value;

}
&lt;/script&gt;
</apex:page>
changed the code..
but still facing the problem
Dhaval PanchalDhaval Panchal
What you have changed? I don't see "reRender" property in your latest code. And paste your code in Code block, so it can be easily readable.