I need to create a formula field based on another picklist Field.Based on the value available in picklist need to populate same value in formula field.Here in picklist field contains 30values.Please suggest how to implement this
Try this
TEXT(Picklist field API Name)
Or Check this
https://help.salesforce.com/articleView?err=1&id=tips_for_using_picklist_formula_fields.htm&type=5
Related
I have a custom field containing a number for variable products.
Each variant has a "custom_price" field.
How do I print an array containing all "custom_price" then the indicated custom fields of a variable product?
In particular, this would help me find the minimum custom field value set for a product in its variants.
I am using a picklist merge field in an if statement using conga composer in a Word template.
Since the if statement uses picklist label value and not picklist api name value, the if statement does not work when changing user language since picklist value label is translated.
How can I make my if statement works whatever is my user language (picklist values labels are translated) ? Is it possible to use picklist api names values? If yes, how?
Thanks in advance for your help
In multi picklist i have = A, B and C
In picklist i have D
I need salesforce validation for this so that only selected values in multi picklist will come to picklist.
You can create Field dependencies for this
https://developer.salesforce.com/docs/atlas.en-us.fundamentals.meta/fundamentals/adg_simple_app_adv_field_dependencies.htm
In solr i have a multiValued field called animal and it has the values {cat,dog} is it possible to get the number of values inside the multiValued field in solr(in my example 2)?
If you want to count the items in a multivalued field use CountFieldValuesUpdateProcessorFactory
There is no direct way to get the count of items in a multivalued field.
You can always maintain the field count during indexing and use it.
If not using during query time, you can always count the list size.
Is it possible to make an editable formula field in an object?
A formula field is not editable. You could create an "override" field. This is the formula for the formula field:
IF(ISBLANK(OverrideField), "Formula value here", OverrideField)
If OverrideField has a value, it is used. Otherwise, the "formula value here" value is used. You should change "formula value here" to an expression that you want in the formula field.
It is not possible to make formula field as editable.formula field is a read only field.
While not a formula field, you could also create a workflow rule which populates a field only when that field is empty. Set up the workflow to fire whenever the field value is blank. Then, as your action, create a field update that sets the field to your formula value.
The downside of this is that the field value will only be updated when the record is saved and the field is blank. This differs from formulas in the fact that a formula field is updated every time the record is viewed. Depending on your specific use case, this may be an issue.