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
minnuchcloud@gmail.comminnuchcloud@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

ViciaVicia

Hi ,

I think you can use a workflow with update field action to achieve it .

minnuchcloud@gmail.comminnuchcloud@gmail.com

but these fields are picklist fields 

ravi1234.ax1565ravi1234.ax1565

 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>
Raj.ax1558Raj.ax1558

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