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
manishtiwary1.390210540410199E12manishtiwary1.390210540410199E12 

Visual force page req

Hi All,

I have created a VF page called Promotion .
I have a dropdown list Planned,In progress, Completed and Aborted in Promotion page
Now I have twofew requirnment:
Req-1
The dropdown stage move one by one like
1)Planned -->Inprogress
2)In progress--> Completed or Aborted

Req-2
If I select stage  Completed or Aborted then all the the field become read only.
user should not edit  the record. Since we have selected stage as Completed and Aborted.

Request your help .

Thanks,
Manish



Ravi NarayananRavi Narayanan

OnChange event of Picklist -- call method n controller using actionSupport. 

 

have some boolean variable called flag.

 

if(picklistvalue==inprogress-planned)

flag=true;

else

flag=false;

 

now refresh the pageblock.   if flag is false render outputfield.. if flag is true, render inputfield