Reg. JS Input box

Hi,
Is it possible to get user input using Javascript as below in SC

var answer = prompt (“What is your age?”,“20”);
alert (“You are " + answer + " years old.”)

advise

Regards
Dhana

Re: Reg. JS Input box

Create the JS function using onForm and call the function when needed.

btw, you can always test your script at: (click tryit)
http://www.w3schools.com/js/default.asp

Regards,
Scott.

Re: Reg. JS Input box

Hi Scott,
Thanks…!

Can i create JS a return the Value to the Sc variable using this…?

I want to get PIN from user and get validated…!

let me try some exampless…!

Regards
Dhana