You need to sign in to do that
Don't have an account?
Jonathan Wolff 7
Display text insed of variable using renderer
Hello, I used an inputfield and wanted to display different texts depending on which value for the field "PDF_Vorlage__c" is inserted. But inseted of text I am only able to display the variable
( <apex:inputField value="{!Campaign.PDF_Vorlage__c}" rendered="{!IF(Campaign.PDF_Vorlage__c ='Vorlage 1' ,true,false)}"/>)
If I insert text in the value field I get an error.
Is it possible in some way to achive getting a text instead of the variable?
( <apex:inputField value="{!Campaign.PDF_Vorlage__c}" rendered="{!IF(Campaign.PDF_Vorlage__c ='Vorlage 1' ,true,false)}"/>)
If I insert text in the value field I get an error.
Is it possible in some way to achive getting a text instead of the variable?
Assuming you don't want to use an extension class, you can add an ID to the inputfield and select it with Javascript.
In case you want to pass the value via controller, check https://salesforce.stackexchange.com/questions/92360/how-to-pass-apexinputfield-value-to-the-controller
Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you