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
Emmanuel CoronaEmmanuel Corona 

Manage apex:messages - caught Error

Hello!

 

I have a vf page and 2 classes that register a record and 2 attachments...

 

The thing is scenario 1:

 

If i clic on save, and no attachments are selected, i get an error, but i don't know how or where are they specified as required.

 

Scenario 2:

 

if i capture all the fields and select the files... but the validation rules works on save... i don't see the files attached, if i correct the fields and clic again on saved... depends on wich browser i'm working... i get an id error or sometimes it is saved with the files.....

 

So what i would like to do is to see the error message and depend on the error, send message to the user, open another page or just show again the name of the files attached so the user don't try to select them again...

 

I know it is very difficult to understand but i can share screenshot and what i try to do