<apex:pageBlock id="theBlock">
<apex:inputCheckbox value="{!theSObject.CheckBox__c}">
<apex:actionSupport event="onchange" rerender="theBlock"/>
</apex:inputCheckbox>
<apex:inputText value="{!theSObject.TextField__c}" disabled="false" rendered="{!(theSObject.CheckBox__c == true)}"/>
<apex:inputText value="{!theSObject.TextField__c}" disabled="true" rendered="{!(theSObject.CheckBox__c != true)}"/>
<!-- Or to simply have a field that appears only when the box is checked -->
<apex:inputText value="{!theSObject.TextField__c}" rendered="{!(theSObject.CheckBox__c == true)}"/>
</apex:pageBlock>
Is it only for edit page? How would you pre decide which picklist value to send in the URL for new records? Do you have any magic stick which decides that user is goona choose this particular picklist value, and you send that particular value to the URL?? thanks,
But we are not able to edit the standard page right.
I don't think it's possible.
You can have workflow to copy the picklist value to the text field.
Thanks,
Sumit Kumar Singh
Can you please explain, how to create a workflow for this sceneraio.
Setup a workflow rule where the condtions for the formula ( not criteria) is based on your ISCHANGED( Picklistfield ).
The field update will update the desired field using a formula and the formula will likely be something like:
your Text(textfield).
when the picklist value is changed to " ISCHANGED( Picklistfield )" the rule will fire and copy the value of the picklist field into your text field.
Thanks,
Rupal Kumar.
http://www.mirketa.com
I think, It should be Text(Picklistfield).
Thanks,
Sumit Kumar Singh
thanks,
Sumit Kumar Singh.