Enable Formula Script for Manual Workflow Conditions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rabii
    Active Community Member
    • Jun 2016
    • 1250

    Enable Formula Script for Manual Workflow Conditions

    Hey Guys,


    We come across a use case where we need to use formula script for conditions to show the manual workflow button. This would really enhance the manual workflow button feature, and based on a previous feature request i have put before (this would allow to show the button to only certain use using code like below:

    PHP Code:
    env\userAttribute('id') == 'some-user-id' && status == 'Pending' 
    

    This would really help a lot.

    Thanks
    Rabii
    Web Dev
  • yuri
    Member
    • Mar 2014
    • 8453

    #2
    Formula is backend only. Showing/hiding button is frontend. Unlikely to be implemented. Would be too hacky.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • yuri
      Member
      • Mar 2014
      • 8453

      #3
      If we implement $currentUserId, $currentUserTeamIds special fields for dynamic logic, it will solve the problem.

      For now, you can create a view setup handler that will hide the button.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      • rabii
        Active Community Member
        • Jun 2016
        • 1250

        #4
        > If we implement $currentUserId, $currentUserTeamIds special fields for dynamic logic, it will solve the problem.

        If that would solve the issue, it would be great addition.

        Can i use set up handler to hide a manual workflow button?

        Thanks
        Rabii
        Web Dev

        Comment

        Working...