Notifications
Announcements
No record found.
Hi,
I want to show some fields in an alert with single input box.
Is it possible to do with JS, if yes then how could i do the same?
*This post is locked for comments
the GitHub project of Paul Nieuwelaar might be an inspiration: Alert.js
Thanks for the response Stefan,
But for Alert.Js we need to purchase licence for production use.
So, Is there any other approach to do the same?
The version 2.1 of Alert.js is very. You can try that-
github.com/.../license-v2.1.md
Hope this helps.
check if the newly introduced OOB client API will be able to resolve the issue.
check this for reference
Regards,
Siraj M
See if the below code helps you...
function showAlert()
{
debugger
var accountName = Xrm.Page.getAttribute("name").getValue();
var phone = Xrm.Page.getAttribute("telephone1").getValue();
if (accountName != null)
var txtInput = prompt("Old Accounnt Name: " + accountName + "\nPhone Number: " + phone + "\nPlease Enter new Account Name to change", "");
if (txtInput != null && txtInput != accountName) {
Xrm.Page.getAttribute("name").setValue(txtInput);
Xrm.Page.data.entity.save();
}
else {
Xrm.Utility.alertDialog("You choose not to change Account Name");
Thanks Ahmed. It works.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2