Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Hi, you should be able to map use the Email Tool after form submission using Form Properties#PostFormSubmissionProcessing. However I believe that email clients do not allow JavaScript to be executed in email content for security reasons.
I would like to send EMAIL with the custom body msg using the following code.
function generateOTP() {
var digits = '0123456789';
let OTP = '';
for (let i = 0; i < 6; i++ ) {
OTP += digits[Math.floor(Math.random() * 10)];
}
return OTP;
}
document.write("Dear customer, your OTP for registration is "+generateOTP()+". Use this code to validate your login.")
The code generates the random OTP number.
How can I send using email tools in the form builder?