How to fire Notification on based on Value change in Service centre?
Summary:
In Service Request Edit Page, We have on Generate_otp_c field which is of checkbox type will return true and false values.
For that, I have written javascript as below. at Service App UI Level but it didn't work.
We want to call generateOTP function on field change and also want to fire notification i,e OTP sent successfully.
if (fieldChange.hasOwnProperty('ServiceRequest.GenerateOTP_c'))
{
let otp = fieldChange['ServiceRequest.GenerateOTP_c'].newValue;
if(otp=='true')
{
console.log("OTP Generated--->"+ generateOTP());
}
function generateOTP() {
// Declare a digits variable
// which stores all digits
let digits = '0123456789';
Tagged:
0