You need to sign in to do that
Don't have an account?
SRILAKSHMI B
Show popup message on VF page
Hi All,
I have created a Visualforce page with input fields.When user clicks on save button a logic executes in the controller and need to show up a pop message to user saying fill the values in the fields.
Can you please let me know how this could be acheived.
Thanks,
Srilakshmi B
You can make use of javascript 'alert' methods. If it is making some fields mandatory then I don't see requirement of pop-up message, instead use validation rules.
Try this
Thanks for the solution.But actualy my requirement is something like this.
I have Reject button on my VF page page when user clicks on the reject button without entering in the Rejection reason field I should show Alert message to him.I think I need to use the javascript here.
Could please provide me with code snippet to acheive this.
Thanks,
Srilakshmi B
To achieve this,
We can use window.showModalDialog('popuppageurl') method.
function fun()
{
window.showModalDialog('/apex/newpage');
}
<apex:form>
<apex:commandButton value="Popup" action="{!dosomeaction}" onclick="fun()" />
</apex:form>
Like this you have to use.
Write a javaScript function displaying on what field you want with a condition
and diaplay message with alert("****** The Message **************");
Thanks for this suggession. I have implemented the same and it worked.
Thanks
Nasir Jawed