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
ssousanssousan 

Getting input values from user that is not related to account database

Is there a way to get the inputField to accept values that are NOT in any Salesforce database [i.e object]?

 

 

Thanks

amarcuteamarcute

Hi,

 

<apex:inputField> is kind of tied to any field of an Object. You can Use <apex:inputText> component to get user input for a controller method that does not correspond to a field on a Salesforce object.

 

<apex:inputText value="{!inputValue}" id="theTextInput"/>