The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
26 views

How to give file upload success message in vf page

I want to give a file upload and record insert success message. I am udsing the below apex class. Can anyone help me how to give success message. public with sharing class devoteeinsert{ ...
1
vote
1answer
30 views

Set up an Alert on the “New” opportunity button

Is there any way to set up an alert message when a user clicks the "New" button either on the Opportunity object or on the account related list? I don't think creating a new button will help because ...
2
votes
1answer
63 views

Visualforce Apexpage 'AJAX' like response

I have written a VF Page: <apex:page controller="DocumentObjects"> <apex:form > <apex:pageBlock title="Document objects"> <apex:pageMessages /> ...
0
votes
1answer
47 views

Rerendering apex:pageMessages (when clicking button) causes the message to be not displayed

I had an issue when re-rendering apex:pageMessages when a command button is clicked. If I remove the re-render from the apex:commandButton, the apex:messages is displayed correctly. Here's my ...
1
vote
1answer
74 views

DML Exception and validation rule in Salesforce

Today I had a very unusual experience while working on a VF page. It's a very simple page and controller but the results were quite strange. Actually, I am trying to save an Opportunity and if there ...
0
votes
2answers
185 views

Page Message not show in my VF Page

I just used the below code in my application but the page message not show. What i doing wrong VF Page: <apex:pageMessages id="msgs"/> <apex:pageBlock > <apex:outputpanel id="outid" ...
0
votes
0answers
63 views

DMLException error not coming properly

I am trying to upsert a record and and I am expecting, when I hit the button, then it will check for Invalid Email address, and if there is any then it will show me the error in the pageMessage. ...
3
votes
2answers
1k views

How to test page messages in unit test?

I have an Apex controller which unsubscirbes users from email via an opt-out form. I have written a test class which tests the method (or atleast partially at the moment). I would like to know how I ...
0
votes
1answer
410 views

Display error message from controller fails

I have below apex page where I am trying to catch a custom apexpages.addmessage from the controller. But it is not working , simply not displaying the error message in page. Can someone please help? ...
0
votes
3answers
384 views

How to display different error messages at different places on a Visualforce page

How can I control how error messages from apex show at different places on a page? I`d like to show ErrorA to RegionA if ErroA occured, and ErrorB to RegionB if ErrorB occured. Does anyone have any ...
1
vote
1answer
825 views

Return apex page message to Java script alert popup

I want to show the error message on Javascript alert popup.Is it possible? I have a custom detail button which calls below page and creates a related record.If related record exists then I want to ...
3
votes
1answer
76 views

Output label not conditional

I have a requirement to show page message for a particular selected template. The template selection done here. But render is always returning true in this case. Can someone help me here? ...
2
votes
0answers
24 views

Render based on TemplateId [duplicate]

I have a requirement to show an apex page message "XX YY" if the selected template id to email is "Update Status". (This message needs to be displayed when they make the selection not when they click ...
0
votes
1answer
138 views

Hiding page messages for required fields

I am showing few required fields on my VF page. I am also using apex:pagemessages to show custom error messages. Below is my code <apex:pageblock mode="edit" title="Agreement Address Edit" ...
2
votes
3answers
448 views

Best way Optional warning message on page load

I have to show a message on top of a visual force on load page,if certain conditions are met. I know 2 ways: 1) in the constructor: if (Querycondition){ ApexPages.Message myMsg = new ...
5
votes
1answer
656 views

ApexPages.Message appears as bullet point instead of standard graphic

I've got a message that I'm adding to a page with the following code: ApexPages.AddMessage(new ApexPages.Message(ApexPages.Severity.CONFIRM, message)); The message appears on the resulting page. ...
3
votes
1answer
319 views

ActionPoller and pageMessages rerender issue

I have a pretty batch that is trigger from a VF page. Then I check the batch status using an ActionPoller until it is completed and finally I rerender the batch results. Everything is working fine ...
0
votes
1answer
417 views

Custom errors using apex:pageMessages

I have created a custom Login page for my customer portal but the problem is that if I want errors to display when the user enters wrong credentials I am forced to use <apex:pageMessages id="error" ...
0
votes
0answers
259 views

error message at page level for visualforce page

At page level , it's showing single error message but we have multiples error messages on multiple fields level. How can show multiple error message at page level. .... public PageReference ...
2
votes
1answer
63 views

Where should apex:pageMessages be placed in a Visualforce page?

I have an issue where my apex:pageMessages does not appear in the visualforce page even though i have that tag on the top of the page. Now, i tried placing the apex:pagemessages component just below ...
4
votes
3answers
2k views

Odd error: apex:pageMessages not displaying any errors in inline visualforce page. Am i missing something?

I am trying to display error messages using apex:pageMessages tag but the error block does not show up in the inline visualforce page. Is there any restrictions that a visualforce page should contains ...
4
votes
1answer
651 views

PageMessages writing duplicate error message

I have a simple visualforce page like so... <apex:page controller="MerchantDetails"> <apex:form > <apex:pageBlock title="Confirm or solicit the fields below"> ...
2
votes
2answers
3k views

Display all error messages

Visualforce page is displaying one error message at a time not all error messages if validation is failed for all fields.Below is my code in the controller.I have apex:pagemessages in visualforce page ...
5
votes
3answers
2k views

<Apex:pageMessages/> not working if showHeader=“false”

everyone. I had problem showing errors in my page, and I boiled it down to the use of showHeader="false". Here's my Controller: public class MyTest1 { public MyTest1() { ...
1
vote
2answers
130 views

How to auto populate alert message for opportunity closed under a custom object?

I am having one custom object "Site" which has lookup relationship with opportunity. Which means each site record has more than one opportunity. For example if a site record has 5 opportunity in that ...
0
votes
2answers
109 views

Auto populate message when opportunity is closed?

I need to auto populate a message when the opportunity stage set to closed. Can one tell how to do this and also tell me any links for this. Thanks in advance Regards, Lavanya.
0
votes
2answers
173 views

Set some type of alert on our Opportunity page

I have something else that is throwing me for a loop. I hope I can explain this ok. I have our Opportunity page that I have a request to put some type of alert on. This could be a label or a text ...
5
votes
2answers
493 views

Determine if Apex is invoked via Visualforce

I have a wrapper around a third party integration that I am invoking in two places -- a Visualforce page with user entered data, and a batch job that executes scheduled tasks every so often. I had ...
2
votes
2answers
3k views

Customize standard error message on the visualforce page

I want to customize the error message box which comes for various errors. i want only a single custom message for all types of errors and also a different custom icon. How can i implement this?
10
votes
1answer
2k views

Inserting a link in an ApexPages message

I was wondering if there's a way to display a link in an ApexPages.Message. There's nothing mentioned in the documentation about it, so I simply did a : ApexPages.Message(ApexPages.Severity.CONFIRM, ...
6
votes
4answers
5k views

Clear Apex:PageMessages without losing viewstate

Is there a way to clear the PageMessages in my controller without losing my Page's viewstate? At the moment I'm doing a ajax call from my visualforce page, which rerenders part of my page, but this ...