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
Prince PranavPrince Pranav 

Picklist value show and hide button on lightning component

I have a picklist field ProgressType__c on Student object. And it has values None, Manual, Pending.
I have to display the COMPLETE button on my lightning component page if ProgressType__c==Manual.

If (ProgressType__c==Manual)
{ it will display a pop up with two buttons Confirm and cancel. }

If Confirm button clicked
{ there is one Complete Checkbox Field on student record lightning page that will be marked as checked. && manual progress picklist field value will be shown as completed. }

Please help me out to do this in lightning component.
Thanks, Prince Pranav
ShirishaShirisha (Salesforce Developers) 
Hi Prince,

Greetings!

Please find the sample code in this document (https://developer.salesforce.com/forums/?id=9062I000000Qv1oQAC) to hide/show the button based on the picklist value in aura component.

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri