Question: i have a form wherein i accept id of a customer and depending upon that id i retrieve details of that particular customer.
Over here i have a LOV for payment modes.
If the customer is paying by cheque, i have kept fields to accept cheque details.
But if he enters cash, i disable the cheque details fields.

Now the thing is, when i am entering new record and i select cash as payment mode, the cheque details fields are disabled. But when i save that record, the cheque details fields are again enabled.

Also when i retrieve the data from database using 'execute-query' the fields are not disabled if the payment mode is cash for that particular customer.

I want to keep the cheque details fields disabled whenever the value in the payment mode field is CASH.

Can anyone help me out with this?

Answer: 
Below code is working

```
 <string name="Rs">\u20B9</string>

```

In code :

```
     MenuItem balance = menu.findItem(R.id.action_balance);
     SpannableString s = new SpannableString(result.replace("Rs",getResources().getString(R.string.RS)));
     s.setSpan(new ForegroundColorSpan(Color.BLUE), 0, s.length(), 0);
     balance.setTitle(s);

```

OR Edit your code as : 

```
if (result.contains("Rs")) {
     result = result.replace("Rs","₹");
     MenuItem balance = menu.findItem(R.id.action_balance);
     SpannableString s = new SpannableString(result);
     s.setSpan(new ForegroundColorSpan(Color.BLUE), 0, s.length(), 0);
     balance.setTitle(s);
}

```

OR Edit your another code as : 

```
<string name="Rs">\u20B9</string>

 result = result.replace("Rs",getResources().getString(R.string.RS));

```
you can define String rsString = "\u20B9" and call setTitle(rsString);
Or you can use "\u20A8". It may not work on Emulator but will work on device