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

query regarding s-control URLFOR

hi all,
i used a s-control for controlling some functionality so that user is moved to edit page whenever condition is not fulfilled. it is working fine with save button but during click of 'cancel' button same result is obtained like page is refreshed and same error occurs again.
i used window.location.href="{!URLFOR($Action.Lead.Edit,Lead.Id,null,true)}"; for rendering user to edit page.
i need to cancel all operations and return to details view page on click of 'cancel' button .
please help me its urgent.