In my VF page I need to disable an inputField based on a boolean condition set in my controller. If I add the html-disabled option to the inputField it disables the field, regardless of what I set the value to (true or false). Only when I remove the html-disabled setting altogether, does it allow input.
<apex:inputField html-disabled="{!IF(allowChoice, false , true)}" value="{!account.Preference__c}" html-placeholder="Select"/>
If allowChoice = true, I want the inputField to allow input (it's a picklist /dropdown). If it's false, I want to disallow selection. Problem is, regardless of what allowChoice is set to, it disables the field on the page.