I have created a visualforce page where the chatter functionality will be given access to the external members of an organisation by entering an external agency email address. I have put validations to check the contents of the email field. For example if I have put email address as abc it throws an error as "enter email address in the correct format". But if I try to save the email address as blank space it gets saved and a blank space user is shown in the pending list of members.
Tell me more
×
Salesforce Stack Exchange is a question and answer site for
Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.
|
|
For that also you need to keep a condition say Suppose
If u put a condition like that then it will throw a error message |
|||||
|
|
|
If you are using apex:inputText component, you can use the "required" attribute to make it mandatory to a user to enter a value. |
|||
|
|
|
If you are using apex input text you can use the below apex code using regular expressions
|
|||||||||
|
