# Okta handlebars

**URL:** <https://devforum.okta.com/t/okta-handlebars/12967>\
**Category:** Questions\
**Created:** [February 17, 2021, 7:45am UTC](https://devforum.okta.com/t/okta-handlebars/12967 "2021-02-17T07:45:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akshay](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@Akshay](https://devforum.okta.com/u/Akshay)\
**Post date:** [February 17, 2021, 7:45am UTC](https://devforum.okta.com/t/okta-handlebars/12967/1 "2021-02-17T07:45:42Z")

</div>

I want to display a different app name for some of the client ID’s, So I want to keep all the clients Id’s in a list and check if the client ID is coming in a request matches with list then change the app name below is the code this is for okta hosted sign-in widget.

```
 var requestContext = OktaUtil.getRequestContext();
            if ( requestContext && requestContext.target && requestContext.target.label ) {
              	if ( requestContext.target.clientId = {{{clientIdList}}} ){
                	return "my App";
                }
                else return requestContext.target.label;
            }
            else return "Sign In";
		}

```

This is how I want my code to look like but not sure how can I define value for `{{{clientIdList}})`

---

<div class="post-metadata">

**Author:** ![Lijia](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/lijia/32/2295_2.png) [@Lijia](https://devforum.okta.com/u/Lijia)\
**Post date:** [February 18, 2021, 12:04am UTC](https://devforum.okta.com/t/okta-handlebars/12967/2 "2021-02-18T00:04:38Z")

</div>

@Akshay  
I think you probably need to create an arrayList and check if the list contains the the target clientId.  
You can refer the IDP list in sign in widget and try to create one for your clientIdList.

> **[okta/okta-signin-widget - OpenID Connect](https://github.com/okta/okta-signin-widget#openid-connect)**
>
> Okta SignIn widget that renders the new login/auth/recovery flows

---

<div class="post-metadata">

**Author:** ![Akshay](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@Akshay](https://devforum.okta.com/u/Akshay)\
**Post date:** [February 18, 2021, 5:34am UTC](https://devforum.okta.com/t/okta-handlebars/12967/3 "2021-02-18T05:34:54Z")

</div>

@Lijia Thanks for the info. I was able to implement the same just one more doubt how can I add HTML paragraph marked in red on okta hosted sign-in widget? Attaching the image below. Again want this to be conditional i.e. display this banner for few of the client ID.

 ![Screenshot 2021-02-18 at 11.04.20 AM](https://global.discourse-cdn.com/oktadev/original/2X/8/820d939b90438d53efd124a76536b50cf041966d.jpeg)

---

<div class="post-metadata">

**Author:** ![Lijia](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/lijia/32/2295_2.png) [@Lijia](https://devforum.okta.com/u/Lijia)\
**Post date:** [February 18, 2021, 7:26pm UTC](https://devforum.okta.com/t/okta-handlebars/12967/4 "2021-02-18T19:26:29Z")

</div>

@Akshay Hi you may need refer error handler.

> **[okta/okta-signin-widget - afterError](https://github.com/okta/okta-signin-widget#aftererror)**
>
> Okta SignIn widget that renders the new login/auth/recovery flows

---

<div class="post-metadata">

**Author:** ![Lijia](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/lijia/32/2295_2.png) [@Lijia](https://devforum.okta.com/u/Lijia)\
**Post date:** [March 23, 2021, 6:28pm UTC](https://devforum.okta.com/t/okta-handlebars/12967/5 "2021-03-23T18:28:11Z")

</div>


