0

I am trying to use IF on my VF page. But I am getting this error. What's wrong?

<apex:inputText value="{!IF(CONTAINS(stringOfKeys, item.Id), orders[item.itemId], '')}" id="bVAL"/>
  • 1
    Whats the error? – Samir Apr 15 '17 at 12:53
-1

Please provide the error. But I think you need to replace orders[item.itemId] to orders[item.Id] as below -

<apex:inputText value="{!IF(CONTAINS(stringOfKeys, item.Id), orders[item.Id], '')}" id="bVAL"/>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.