
And I have found that when the property "immediate" is ture it works what I'd like to,and skip the check rules.But my leader ask me not change the code in Pages,so I have to find another way.Can I change "immediate" by jQuery or in Apex?
5 respuestas
Here are a couple ways to do it:
- Override the "Delete" button on the page in your controller, and do the check there
- Add on onClick Javascript/jQuery event on the Delete button to validate the input
- Create a "before delete" trigger to detect the actions of the page and prevent them with the addError() method
Hope this helps!
David