function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
can u please tell me how to hide the apex:inputtext based on selectlist item values.
You may want to use rendered atrribute on inputtext component.
Your page would have code something like this.
<apex:selectList value="{!country}"> <apex:actionSupport event="onchange" rerender="fieldToRerender"/> <apex:selectOptions value="{!countries}"/> </apex:selectList> <apex:inputfield id='fieldToRerender' value="{!contact.SOME_FIELD__C}" rendered="{!IF(country=='US',true,false)}"/>
Your controller class would have code, something like this.
public String country {set; get} public List<SelectOption> getcountries() { List<SelectOption> options = new List<SelectOption>(); options.add(new SelectOption('US','US')); options.add(new SelectOption('CANADA','Canada')); options.add(new SelectOption('MEXICO','Mexico')); return options; }
Hope that helps.
Afzal
You may want to use rendered atrribute on inputtext component.
Your page would have code something like this.
Your controller class would have code, something like this.
Hope that helps.
Afzal