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
Nagarajan CNagarajan C 

Pop up modal want to close auto in LWC

i have opened two pop up modal with the help of LWC components and want to close automatically first modal pop up .Can you any one help of this scenario.
AshwiniAshwini (Salesforce Developers) 
Hi Nagarajan,
Can you elaborate more on the ask? Can you post your code here?

Arun Kumar 1141Arun Kumar 1141
Hi Nagarajan,

Pop up Modal can be opened and closed according to a variable value set in js file of lwc component. You can set the value of showModal variable in Js file of lwc component as true or false according to your functionality. In this case scenario, set the value of variable for first pop up modal to false while setting the value of variable used in second modal pop up to true as shown in below figure.

User-added image

User-added image

Please mark it as best answer if it helps.