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
Udaya BhaskarUdaya Bhaskar 

Help needed in Java Script

Hi All,
 
We have a requirement where i need to do validation on run time and not during Save of the record. That is, i have two custom fields Product Level 1,Product Level 2 which has the following values.
Product Level 1 - Carbon,Nitrogen,Oxygen,Methane
Product Level 2 - Medical Gas,Poisonous gas, Industrial gas
when i select Carbon in Level 1 and try to select Poisonous gas in level 2, at run time i should throw an error. Can some one help me how to do this at run time. We thought of validation rules,but they will run on clicking a button which is not the case here.
 
Thanks in advance,
 
Regards,
Udaya
jpizzalajpizzala
Have you tried using a dependent picklist? Basically, the values in the second picklist will be dependent upon the value chosen in the first picklist ( all at run-time ).


Message Edited by jpizzala on 12-26-2007 09:42 AM