Validation for Picklist Value from MultiPicklist Value - salesforce

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

Related

Print array of all valute of custom filed in variable products in woocommerce

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.

Conga composer : picklist value in if statement with different translation

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

Formula field based on Picklist value

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

filter data using dropdown?

I have an array of objects which are just items. I also have a dropdown which I would like to use to allow the user to filter by price or rating however on page load there should be no filtering.
How do I map item data to filter based on the current select option?
I have a plunkr to get started: LINK
First and foremost, your select values are ambiguous. They contain values that can filter AND sort the entries - Separate the two since they are two different functionality.
Next, you need to define a custom Filter which will filter the data based on the rating selected. For this, you enhance the filtering criteria with the "Rating" property to associate the rating selected with a rating value.
Finally, associate the sorting with a predicate and a reverse value - the predicate determines the property / column to determine for the sort (price in your case) while the reverse determines the ascending / descending nature of the sort.
The entire code can be found here - http://plnkr.co/edit/n7TebC?p=preview
I have updated the plunkr and introduced comments so let me know if you do not understand a code.

Can we make an editable formula field in salesforce

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.

Resources