You need to sign in to do that
Don't have an account?

How to give a alert when we select a specific value from pick list?
I have a pick list called System Size(System_Size_SUB_2013__c). When I select 2000L SUB from pick list, I want to give an alert to the user. (Only for a 2000L SUB, Not all of them). Any idea how to do that? Thanks
Field
<apex:inputField value="{!Product_Brief__c.System_Size_SUB_2013__c}" required="true"/>
Try something like this
Select it as best if it helped you.
Thanks.
You can achieve it by invoking a simple JavaScript function on "OnChange" event of Picklist field.
Code Example,
<apex:page standardController="Account">
<script type="text/javascript">
function showAccountType(value){
alert(value); //should get the passed value in a alert here.
}
</script>
<apex:form id="form1">
<apex:pageBlock id="pgid">
<apex:inputField id= "typeId" value="{!account.type}" onchange="showAccountType(this.value);"/>
</apex:pageBlock>
</apex:form>
</apex:page>
Hope it helps.
Cheers,
Biswa