function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Hari nadh babu EluruHari nadh babu Eluru 

Show Error Message in Visual Force

VF Code
<apex:page controller="Details_Saved_DB">
<apex:form >
<apex:outputLabel >Enter Name</apex:outputLabel>
<apex:inputText value="{!x}"/>
<apex:outputLabel >Enter Phone</apex:outputLabel>
<apex:inputText value="{!y}"/>
<apex:commandButton value="Save" action="{!InvokeMe}"/>
</apex:form>
</apex:page>
How to put error message tag in input text field above visual force code. Please provide. Thank you !
Best Answer chosen by Hari nadh babu Eluru
mukesh guptamukesh gupta
Hi Hari,

You can follow below url for your solution:-

https://www.forcetalks.com/blog/adding-error-messages-to-field-inputs/

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh

 

All Answers

AnkaiahAnkaiah (Salesforce Developers) 
Hi Hari,

Please refer the below article will help to proceed further on your requirement.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_inputField.htm

Also, refere the below link, how to implement custom controller in VF pages.

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_custom.htm

If this helps, please mark it as best answer.

Regards,
Ankaiah
mukesh guptamukesh gupta
Hi Hari,

Please follow below url:-

https://jayakrishnasfdc.wordpress.com/2018/08/05/show-error-message-in-visualforce-page/

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh
Hari nadh babu EluruHari nadh babu Eluru
How to put error message tag in this code. Please give answer for this above code. Thank you
mukesh guptamukesh gupta
Hi Hari,

You can follow below url for your solution:-

https://www.forcetalks.com/blog/adding-error-messages-to-field-inputs/

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh

 
This was selected as the best answer