function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

applying trigger with s-control

hi all,
i need to update one field like 'status of lead' whenever a custom button 'change status' is clicked and to check other field that becomes mandatory after converting status like ' comments'. so problem is when button is clicked status conversion as well as mandatory field checking should be done one after the other.
so i applied a trigger so that when status is converted, 'comments' field get checked. but due to it status field dont get updated when comments field remains empty. page is rendered to edit page without updating 'status' field.
so what to do now. please help me out.