Page 1 of 1

Open Widget Window to Confirm Deletion Selection

Posted: March 9th, 2022, 12:44 pm
by smoady
In Platform 3 tenant I'm trying to add a feature to the Account Home page. The page has a feature to delete users created (if signed in as userA, it wouldn't allow userA to delete self and display a message). However, if userA deletes userB, it will directly delete the user without displaying an 'Are you sure you want to delete the user' message
I created a widget with 2 buttons either selecting (yes/cancel) How do I implement it to open the widget, wait for a response from the user, and return the query string from the widget to the DeleteButton Model, based on the response from the widget it will either just close the widget or close the widget and delete the user?

Re: Open Widget Window to Confirm Deletion Selection

Posted: March 9th, 2022, 1:20 pm
by SteveCap
I don't think you need the widget. There is a service named UserDialog that you can get user input from.

Re: Open Widget Window to Confirm Deletion Selection

Posted: March 9th, 2022, 1:38 pm
by smoady
That worked, thanks