The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
24 views

Apex PageMessages are not displayed when using OnComplete JS for CommandButton

I have VF page shown in the service console. When Apex command button is clicked it is invoking controller action method. OnComplete on the command button executes the JS function which refreshes the ...
1
vote
2answers
48 views

Show error message in Visualforce Page

I have a visualforce page with custom controller. I have added apex:pagemessages in a helper static class and for some reason the messages are not displaying on my Visualforce page and I'm not sure if ...
0
votes
2answers
21 views

not showing pageMessages when search box is empty and direct click on the search button

class code public class democlass { public string searchboxstring{get; set;} public list<contact> result {get; set;} public Integer counter{get;set;} public democlass(){ //result = new ...
0
votes
1answer
41 views

How to modify a Visualforce error message

When I update a record from a details page I get the error You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your ...
1
vote
1answer
38 views

Display message

I would like to display message with particular information in Salesforce. I have created a custom field of type rich text and made it read only but it does not allow me to display the message I want....
0
votes
2answers
209 views

Id Value is not valid for standard controller

I am getting the error mentioned in subject with below code when execution runs through Else condition without DML statement. I am not getting how to change Pagereference? Apex Code AllocQ= ...
2
votes
1answer
66 views

Page displays apex scripts while using render=“true” in <apex:page message> visualforce page?reasons?

When I am trying to display page message in vf page I am getting the following issue and that is because of using rendered="true" Page getting displayed with following code: visualforce page code: ...
1
vote
2answers
79 views

Page message Problem?

I have four scenarios with catch exceptions in controller and used "apex:pageMessages" only once in Visualforce page.But that is not working for all the scenarios? Is it mandatory to use "apex:...
3
votes
1answer
230 views

Error Message in Visualforce page

I have a visualforce page which has a apex:pagemessage tag. A method on the controller is checking if a field in the visualforce page is valid. I want to display an error message but I do not want ...
0
votes
1answer
55 views

Apex Page Message

I have a custom page, and it has a field which is inline editable. If the value of the field is changed to null, an apex page message is displayed, the logic of which is written in the controller: ...
0
votes
1answer
153 views

Rerender two visualforce elements after each other?

I have a Visualforce page, with a pageblocktable that is dependent on some date fields. When the dates change I would like to rerender the table, and then rerender the pageMessages. At the moment, ...
0
votes
0answers
445 views

Lightning - how to use apex:pageMessages in a VisualForce page with SLDS

I'm using SLDS library to decorate a VisualForce page and have got some standard validation rules defined at the back, How could I throw the error message to the VF page with using apex:pageMessages? ...
0
votes
1answer
18 views

How to clear the Info message appearing on the Lookup popup window

As we can see in the above image, when user is trying to selecting a lookup record, I have this page message appearing on the lookup window. I am confused on how to debug this. Searched the whole ...
0
votes
1answer
58 views

Display warning message in page

I need to know how to be able to display the following warining message in salesforce page: There is an existing Merchant: corresponding account.Id for this Lead: corresponding objLead.Id_ in ...
0
votes
1answer
68 views

apex page messages are not working in javascript

I want to show apex:pageMessage when validation error occured. In the below code i called save method from the javascript. previusly save method called from action function. after changing code based ...
0
votes
2answers
46 views

Display warning messageq

I would like to know how to be able to display a warning message in a page. I have created my own custom visual force page: <apex:page standardController="Lead" extensions="...
0
votes
2answers
41 views

Do not rerender a panel when there is an error

Is there a way I could not rerender a certain <apex:outputPanel /> when there is an error in a <apex:pageMessages />? EDIT: I tried, I use two actionFunction. the first one is to ...
0
votes
1answer
224 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{ //...
2
votes
1answer
89 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
94 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 /> <apex:...
1
vote
1answer
604 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 ...
2
votes
1answer
258 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
663 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
117 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. ...
5
votes
2answers
4k 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
730 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
1k 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
2k 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
174 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? <apex:...
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
301 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
959 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 ...
6
votes
1answer
1k 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
529 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
775 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
332 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
78 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
3k 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
1k 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"> <apex:...
3
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
3k 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
152 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
130 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
205 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
759 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 ...
3
votes
2answers
4k 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
3k 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, '...
7
votes
4answers
7k 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 ...