RE: Button

Hi All,

I am trying to hide one button based on condition, that initiator cannot see that button it is working in UI level but it is not working in site, 

showWhen: and(
                      not(local!isCurrentUserInitiator_bool),
                      or(
                        and(
                          /*local!actionTypeId_int <> cons!CR_CREDIT_ACTION_TYPE_IDS[8],*/
                          local!actionTypeId_int <> cons!CR_CREDIT_ACTION_TYPE_IDS[14],
                          a!isUserMemberOfGroup(
                            loggedInUser(),
                            cons!CR_GRP_CREDIT_CONTROLLER_GROUP
                          ),
                          rule!APN_isBlank(
                            local!moduleRecommendationStatus_cdt.approver_txt
                          )
                        ),
                        if(
                          index(
                            local!approver_cdt,
                            "isApproveDisplay_bool",
                            false()
                          ),
                          true(),
                          false()
                        ),
                        
                      )
                    ),

and local!isCurrentUserInitiator_bool: local!loggedinUser_txt = ri!crModuleStatus_cdt.addedBy_txt(ri!crModuleStatus_cdt.addedBy_txt is cmg same as local!isCurrentUserInitiator_bool)

I am trying to add  logic on top of or condition that Initiator of the workflow cannot see the button,

Here  isCurrentUserInitiator_bool: true, approver_txt:blank and isApproveDisplay_bool: false.

Can any one help me to fix this issue . Still Initiator can see the button which should not be visible).

Thanks In Advance

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data