You need to sign in to do that
Don't have an account?
Rodolfo Calvo
Show an JavaScript alert from code
Hello team, I have a simple code such as following:
How can I show a this JavaScript from code?
Thanks a lot in advance
public void showQuery() { try { //try something If(Success) { //Show JavaScript success message } else { //Show JavaScript missing something } } catch(Exception e) { //Show JavaScript code of error } }
How can I show a this JavaScript from code?
Thanks a lot in advance
You can use java Script in Visual Force and Use render Attribute for Alert : Please refer below Code
Add below in Visual Force Code : Controller Code :-
Please let me know, if you have any doubt.
Hope this helps
--
Thanks,
Swayam