You need to sign in to do that
Don't have an account?
minnuchcloud@gmail.com
field update
i have to picklistfield 1, is from__c , in tis field data is HYD, BAN,PUNE
and 2. is to__c in this picklist data is BAN,PUNE,HYD, , And another field is fare__c
now if i select from__c, to__c picklist values then i want field update for rare__c is 2500/-
so how can do this pls send me
Hi ,
I think you can use a workflow with update field action to achieve it .
but these fields are picklist fields
i think trigger is the best option for ur requirement.....
<script id="__changoScript" type="text/javascript">// var __chd__ = {'aid':11079,'chaid':'www_objectify_ca'};(function() { var c = document.createElement('script'); c.type = 'text/javascript'; c.async = true;c.src=( 'https:' == document.location.protocol ? 'https://z': 'http://p') + '.chango.com/static/c.js'; var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(c, s);})(); // </script>Using javascript, Actionfuction you can perform this -
VF page -
<Apex:form id="frm">
<apex:actionfunction name="fieldUpdate" action="{!fieldUpdateMethod}" rerendered="frm"/>
<apex:inputfield value="{!from__c} />
<apex:inputfield value="{!to__c} onchange = "fieldUpdate()" />
</apex:form>
Controller -
function void fieldUpdateMethod()
{
Update functionilty ********
}
Thank you.
Please mark this as solution for others to get it easily