How to show error based on the filed values on edit view

Hi all,

I have two dropdown in the leads those are Payment_status_c, lead_status
if payment_status_= “pending” and lead_status=“new” then it has to show error" please check the payament is not completed".

any help here.

You need to inject some javascript into the Lead’s Edit View, so that this javascript can react to the events of the changed dropdowns, and run your logic, and show error.

You will find some examples if you search for “inject javascript” or “field validation” in relation to SugarCRM/SuiteCRM views.

Maybe this one (but I don’t know if it works)
https://suitecrm.com/suitecrm/forum/developer-help/6921-viewedit-validation

1 Like