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
Amanda HollowellAmanda Hollowell 

validation rules for a visualforce page

Hi,

We have a custom visualforce page for our Opportunity object.

I am able to add new fields to this Opportunity object in our refreshed sandbox without issue. However, adding new fields breaks one of our validation rules. I'm not sure why this is, given the validation rule,requiring certain fields to be filled out before going from stage A to stage B, does not have anything to do with the newly added fields. I still briefly see the error messages that should be received before the record is saved as Stage B. Any ideas what might be causing this?

Or at minimum, where would this validation rule live? On the visualforce page? On the Apex Controller for the page?

Any help appreciated!
Alain CabonAlain Cabon
Hi,

That is not logical indeed.
  1. if you remove these new fields, the validation rules works fine again? (that is not the real reason perhaps)
  2. what are your log levels (developer console) and have you some informations in your detailed log?
Developer console:

User-added image

User-added image

Regards
Alain