You need to sign in to do that
Don't have an account?

Custom Lightning Action does not display validation error messages
Hi All,
We have a custom action button in lightning for Lead convert.
Issue is on clicking the convert button (custom) it does not display error message (for example status is mandatory etc). it simply refresh the page with the model box and lead does not convert.
In debug logs .. validation error message is there...
In Lead settings, Require Validation for Converted Leads is also Checked..
Please suggest!!
Thanks
We have a custom action button in lightning for Lead convert.
Issue is on clicking the convert button (custom) it does not display error message (for example status is mandatory etc). it simply refresh the page with the model box and lead does not convert.
In debug logs .. validation error message is there...
In Lead settings, Require Validation for Converted Leads is also Checked..
Please suggest!!
Thanks
We were able to do that...
here is the link whick helped a lot..
http://www.terrasky.com/how-to-handle-apex-errors-for-lightning-component-implementations/
All Answers
@AuraEnabled
public static void apexMethod( )
{
try
{
// Your code here
}
catch (Exception ex)
{
throw new AuraHandledException('Exception occured:\r\n' + ex.getMessage() + '\r\n' + ex.getStackTraceString() + '\r\n');
}
}
We were able to do that...
here is the link whick helped a lot..
http://www.terrasky.com/how-to-handle-apex-errors-for-lightning-component-implementations/