function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Krzysztof NowackiKrzysztof Nowacki 

IF formula in VisualForce

Hi,
What would be IF formula syntax than can be used in VF?
Got something like this below but the error (missing ")"  )  occours .What can be wrong?

<apex:inputField value="{!IF (Opportunity.Amount<1000,Opportunity.Monthly_price_c*number_of_months_c,Opportunity.Amount)}"/> <br/>
Best Answer chosen by Krzysztof Nowacki
Amit Chaudhary 8Amit Chaudhary 8
You are trying to display some value and using <apex:inputField,  If you want to display the value only then <apex:outputText or <apex:ouputLable. 
Please let us know if this will help u

All Answers

Amit Chaudhary 8Amit Chaudhary 8
You are trying to display some value and using <apex:inputField,  If you want to display the value only then <apex:outputText or <apex:ouputLable. 
Please let us know if this will help u
This was selected as the best answer
Krzysztof NowackiKrzysztof Nowacki
Thx Amit!