how to use prompt() after 2025.1 release
# ask-stanley-ai
i
how to use prompt() after 2025.1 release
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that the use of
dialog.confirm
within a client script
saveRecord
has been a challenge. However, a workaround has been suggested which involves always returning false out of the
saveRecord
, then in the promise object if they click 'ok' or whatever you have that says yes you can save this, then get the form and submit it. Here is the code snippet provided in the conversation:
Copy code
javascript
window.onbeforeunload = null;
document.getElementById('main_form').submit()
This code is placed in the "then" statement for the promise function. Please note that this is a workaround and may not be the most elegant solution. It's also important to note that this solution was discussed in the context of the 2024 release, and there may be changes or improvements in the 2025.1 release that could affect this. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.750759304
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.749643922
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.745985389
Please provide your feedback on this answer.