You need to sign in to do that
Don't have an account?
VSN_Force
access field values from java script
Hello All,
I am writing a java script for a button on Opportunity Obj. I want to perform some action based on the value of the record type selected for the particular record, how can i fetch that value?
example:
if(Opportunity.RecordType = 'Type1') {
alert('opportunity rec type is Type 1');
}
but i am not able to perform this. Please help me.
Thanks.
~VSN
try something like:
hope that helps
-Victor
All Answers
try something like:
hope that helps
-Victor
It's actually {!$RecordType.Name}, as the other one produces a record type ID value (15-character unique value), but the above post is correct.