validation

Hi,

i have a picker field when i select some particular users names it has to show validation message else no 

i have written like this but it is showing for all users whoever i select in picker field 

  Discussion posts and replies are publicly visible

Parents Reply
  •  if(
            isusermemberofgroup(
              ri!approver_txt,
              {
                cons!CR_GRP_BOARD_OF_DIRECTORS_GROUP
              }
            ),
            cons!CR_NEXT_AUTHORITY_VALIDATION_MESSAGE[3],
            if(
              isusermemberofgroup(
                ri!approver_txt,
                {
                  cons!CR_APP_GRP_HOC_GROUP,
                  
                }
              ),
              cons!CR_NEXT_AUTHORITY_VALIDATION_MESSAGE[3],
              if(
                isusermemberofgroup(
                  ri!approver_txt,
                  {
                    cons!CR_APP_GRP_DCEO_GROUP
                  }
                ),
                cons!CR_NEXT_AUTHORITY_VALIDATION_MESSAGE[3],
                if(
                  isusermemberofgroup(
                    ri!approver_txt,
                    {
                      cons!CR_APP_GRP_CEO_GROUP
                    }
                  ),
                  cons!CR_NEXT_AUTHORITY_VALIDATION_MESSAGE[3],
                  null
                )
              )
            )
          )

    this worked

Children