when I click on reject it should pop up the below screen (comments) and hide the above form with buttons (cancel/approve/reject)and when I click on cancel for this 2nd interface , I need to get 1st interface again with 3 buttons hiding the comment form(above form)Can someone help me with the code please
Discussion posts and replies are publicly visible
Perhaps the simplest way is to create the "popup" as you call it as a separate component within it's own Interface object, then call it from the larger interface with a showWhen variable passed to it, or inside an if() function like if(local!commenting, rule!APP_commentInterface([parameters]), {}).
You'll probably need to explain the errors that are happening when you try showWhen for us to help you further from there.