Skip to main content
When I click the delete button,it shows me the error message "XXXXX must be input...",

 

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
  1. 4 nov 2013, 04:29
    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
0/9000