Click here to Skip to main content
15,860,943 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: Attempted to register a view with an id already in use: 2 - EmberJs Pin
Pete O'Hanlon12-Dec-19 0:02
subeditorPete O'Hanlon12-Dec-19 0:02 
GeneralRe: Attempted to register a view with an id already in use: 2 - EmberJs Pin
simpledeveloper12-Dec-19 6:26
simpledeveloper12-Dec-19 6:26 
QuestionI need to add “Add new item” option in Select2 Pin
Shraddha_Patel3-Dec-19 17:32
Shraddha_Patel3-Dec-19 17:32 
AnswerRe: I need to add “Add new item” option in Select2 Pin
phil.o3-Dec-19 21:45
professionalphil.o3-Dec-19 21:45 
SuggestionRe: I need to add “Add new item” option in Select2 Pin
ZurdoDev4-Dec-19 2:52
professionalZurdoDev4-Dec-19 2:52 
AnswerRe: I need to add “Add new item” option in Select2 Pin
simpledeveloper10-Dec-19 14:26
simpledeveloper10-Dec-19 14:26 
AnswerRe: I need to add “Add new item” option in Select2 Pin
Member 1469087415-Dec-19 23:13
Member 1469087415-Dec-19 23:13 
QuestionHow to include random password in email text message Pin
freezers30-Nov-19 19:44
freezers30-Nov-19 19:44 
Hi there,

I have created a random password and intend to send this password to the user's email. So that they can type in the password, to log into my course and at the same time use it as a verification.

Below is my random password code.

var passwordChars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#@!%&()/";

var otp = Array(6).fill(passwordChars).map(function(x) {
 return x[Math.floor(Math.random() * x.length)]
}).join('');

var player = GetPlayer();
player.SetVar("NewOTP",otp);


let's say the random code is O#bD3f

The text message in the email will be

Please key in the password O#bD3f

How to include NewOTP in to the text message.

Please help

Thanks.
QuestionRe: How to include random password in email text message Pin
ZurdoDev3-Dec-19 8:00
professionalZurdoDev3-Dec-19 8:00 
AnswerRe: How to include random password in email text message Pin
freezers4-Dec-19 6:42
freezers4-Dec-19 6:42 
AnswerRe: How to include random password in email text message Pin
F-ES Sitecore3-Dec-19 22:56
professionalF-ES Sitecore3-Dec-19 22:56 
GeneralRe: How to include random password in email text message Pin
freezers4-Dec-19 6:42
freezers4-Dec-19 6:42 
QuestionJavascript: indicate when item in a list clicked? Pin
Xarzu30-Nov-19 2:11
Xarzu30-Nov-19 2:11 
QuestionRe: Javascript: indicate when item in a list clicked? Pin
Richard MacCutchan30-Nov-19 4:37
mveRichard MacCutchan30-Nov-19 4:37 
AnswerRe: Javascript: indicate when item in a list clicked? Pin
Member 1469087415-Dec-19 23:21
Member 1469087415-Dec-19 23:21 
Questionre: Highlight all the fields Pin
Member 1466767925-Nov-19 5:27
Member 1466767925-Nov-19 5:27 
AnswerRe: re: Highlight all the fields Pin
jkirkerx25-Nov-19 8:11
professionaljkirkerx25-Nov-19 8:11 
GeneralRe: re: Highlight all the fields Pin
Member 1466767925-Nov-19 11:30
Member 1466767925-Nov-19 11:30 
GeneralRe: re: Highlight all the fields Pin
Member 1466767925-Nov-19 13:02
Member 1466767925-Nov-19 13:02 
QuestionJavaScript Question that doesn't make since. Pin
Member 1466141319-Nov-19 12:07
Member 1466141319-Nov-19 12:07 
AnswerRe: JavaScript Question that doesn't make since. Pin
Afzaal Ahmad Zeeshan19-Nov-19 16:58
professionalAfzaal Ahmad Zeeshan19-Nov-19 16:58 
QuestionHow can I avoid the phenomenon of asynchronous code using promises and async/await? Pin
Simos Sigma17-Nov-19 2:38
Simos Sigma17-Nov-19 2:38 
AnswerRe: How can I avoid the phenomenon of asynchronous code using promises and async/await? Pin
Nathan Minier18-Nov-19 1:35
professionalNathan Minier18-Nov-19 1:35 
AnswerRe: How can I avoid the phenomenon of asynchronous code using promises and async/await? Pin
Richard Deeming18-Nov-19 7:47
mveRichard Deeming18-Nov-19 7:47 
Questionclient's windows login name Pin
kishor kumar S H16-Nov-19 23:47
kishor kumar S H16-Nov-19 23:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.