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
Priya MishraPriya Mishra 

show and hide fields based on the field selection in lightning.

Hi All,

I have to display the fields based on the piclist selected value using lightning component.
example:" Patient envolvment" (picklist) is selected as yes it has to display the some fields like date, Additional contact Name and so on and when  " Patient envolvment" is no fields should hide. and once data is filled in the fields record should be created.
pls guide me how we can create in the lightning component.
this is bit urgent.
Thanks in advance.
PriyaPriya (Salesforce Developers) 
Hi Priya,

Please refer to the below article 
https://salesforce.stackexchange.com/questions/240059/how-to-display-hide-fields-in-lightning-component-using-javascript .

Regards,
Ranjan