Skip to main content
達 徐 が「#Customer Service」で質問
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 件の回答
  1. 2013年11月4日 4: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