You need to sign in to do that
Don't have an account?
Ab
Updating the text and text area when the pick list values changes
Hello,
I have a custom object like below:
I have a visualforce page whcih displays the 3 input fields above like below
I have a custom object like below:
CustomObject1__c CustomField1__c (Picklist, values: Val1, Val2, Val3) CustomField2__c (Text: 100 char) CustomField3__c (Tex Area)
I have a visualforce page whcih displays the 3 input fields above like below
<apex:inputField value="{!CustomObject1__c.CustomField1__c }" /> <apex:inputField value="{!CustomObject1__c.CustomField2__c }" /> <apex:inputField value="{!CustomObject1__c.CustomField3__c}" />Use case
1) When the CustomField1__c is changed to Val1, i want the below things to happen > the CustomField2__c is updated to "recordtypename+username+val1" >the CustomField3__c is updated to "the user name is username, record type name isrecordtypename and the value selected is Val1 Date: Time: "Thanks for suggestions !
There are 2 ways to accomplish it.
1) You can use javescript.
2) You can use Action support
Thanks,
Sumit Kumar Singh
All Answers
Try below code:
Let me know it worked or not.
Thanks
Brahma
Hi Sandrine,
You have to simply create a workflow rules on your custom object to make this field update based on Picklist values.
Like
Evaluation Criteria : Evaluate the rule when a record is created, and every time it's edited
Rule Criteria : CustomField1__c Equals to Val1
Then in Immediate Workflow Actions add field update to update field which you want update when Picklist value is 'Val1'.
Thanks,
Sagar Lakhani.
Thank you for replies,
but i dont think that can serve my use case,
i have above input fields on the same VF page, if first value (which is picklist) is changed then the two other fields which are text and text area changes.
I think what i am looking for is action fucntion.
There are 2 ways to accomplish it.
1) You can use javescript.
2) You can use Action support
Thanks,
Sumit Kumar Singh