can anybody suggest me how to code.
*This post is locked for comments
can anybody suggest me how to code.
*This post is locked for comments
Hello,
Can you please clarify what do you mean by "display a random number which is less than 100 when new record is created"
below a sample code:
var notificationId = "notifId";
formContext.ui.clearFormNotification(notificationId);
formContext.ui.setFormNotification("<String you want to display>" + <variable you want to add>, "INFO", notificationId);
Here is a link as well for more details: docs.microsoft.com/.../setformnotification
Here is the sample Code I just tried and worked for me.
function showRandomNumber(executionContext){
debugger;
var formContext = executionContext.getFormContext();
var randomNumber=Math.floor((Math.random() * 100) + 1);
var message="New Random Number is "+ randomNumber;
formContext.ui.setFormNotification(message, "INFO ", "Id1");
}
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,214 Most Valuable Professional
nmaenpaa 101,156