For Problem 1, the DisplayPromtAsync dialog box cannot be customized with the control functions in it.
For your needs, you need to refer to Popup to create costomized popup page.
For other issues, please avoid asking multiple questions in a single thread, as per the Community Standards.
Avoid posting multiple questions in a single thread To ensure that you receive a clear and helpful answer to your questions, it's important to post them individually. When you have multiple questions, each with its own distinct scenario, it can make it more difficult for the community to understand the problem and provide an accurate solution. For this reason, we recommend that you create separate threads for each of your questions. This way, the community can give you their undivided attention and provide the best possible response.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.