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
ravi1234.ax1565ravi1234.ax1565 

filed dependency

hello group,

 

              i hav one s-obj position in that i hav 3 picklist fields Functional Area, Job Level and Var.

 

                  Functional Area is controlling field of Job Level, 

 

                  and Job Level is controlling field of Var.

                  i retrieved these fields in vf page

               when i select one value in Functional Area the controling value in Job Level displays upto now i feel happy

             and when i select a value in Job Level the controlling value in Var displays, instaed that Var(picklist), a value can be displayed in text box that must be read only.(value is related to Var(pick list)).........

 

       plsa send me code for this.....

     iam new to the salesforce......

 

    thanks for giving reply(in advance)

 

 

 

 

ravi1234.ax1565ravi1234.ax1565

hello group,

 

              pls correct my code to acchieve my requirement

 

            

<apex:page controller="Posi">
<!--<html>
<head>
<script>
function setResult()
{
document.getElementById("var").readOnly=true;
}
</script>
</head>

<body>
<form>
var: <input type="text" id="var">
</form>

</body>
</html>-->


<apex:form >
<apex:inputField value="{!post.functional_area__c}"/>
<apex:inputField value="{!post.job_level__c}" />
<!--<apex:inputField value="{!post.var__c}"/>-->
<apex:inputText />

</apex:form>
</apex:page>

------------------------------------------------------------------------------

 

public class Posi {
public position_5__c post{set;get;}

}

-----------------------------------------------------------------------------

 

 

thanks and regards

ravi

ravi1234.ax1565ravi1234.ax1565
according to my design when i select a value in Job level (picklist field) it shows only a single value in Var(dependent picklist to job level).......... that single value should display in text field instead of picklist in visualforce page....

pls help to achieve this
pls pls pls pls
thanks and regards
ravi