You need to sign in to do that
Don't have an account?
Harshal Katole 7
multipicklist validation rule
picklist field : Course ===> c , cpp ,java,php
multiselecr picklist: Trainer ====> engineeing, bsc,msc,ma
validation rule : for c & cpp only bsc and msc trainer are allowed otherwise throen error.
pls help
multiselecr picklist: Trainer ====> engineeing, bsc,msc,ma
validation rule : for c & cpp only bsc and msc trainer are allowed otherwise throen error.
pls help
Try below snippet.
https://trailhead.salesforce.com/content/learn/modules/point_click_business_logic/validation_rules
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
1. trainer field is multiselect picklist , so how can we use ISPICVALUE insted of INCLUDE()
2. when to use TEXT(). i m bit confused . bcz in course field u did not use TEXT() and trainer field u used TEXT()
Something like INCLUDES(multiselect_picklist_field, text_literal).
Thanks
OR(ISPICKVAL( Technology_of_Training__c ,"Cpp"), ISPICKVAL( Technology_of_Training__c ,"C")),
OR(NOT(INCLUDES(TEXT( Education__c ,"Bsc"))),
NOT(INCLUDES(TEXT( Education__c ,"Msc"))))
)
Error: Field Technology_of_Training__c is a multi-select picklist field. Multi-select picklist fields are only supported in certain functions.
OR(INCLUDES( TEXT(Technology_of_Training__c ,"Cpp")), INCLUDES(TEXT( Technology_of_Training__c ,"C"))),
OR(NOT(ISPACKVAL(TEXT( Education__c ,"Bsc"))),
NOT(ISPICKVAL(TEXT( Education__c ,"Msc"))))
)
=======NOT WORKING=======
Technology_of_Training__c ====== Multiselect piclist
Education__c ======= pickist
TEXT - Converts a percent, number, date, date/time, or currency type field into text anywhere formulas are used. Also, converts picklist values to text in approval rules, approval step rules, workflow rules, escalation rules, assignment rules, auto-response rules, validation rules, formula fields, field updates, and custom buttons and links.
Thanks,
if we choose C & Msc, then it will thrown error. its not case