Skip to main content

#Validation Rule For Picklist On Picklist0 debatiendo

Hable de esto en Slack para conseguir respuestas con mayor rapidez y ayuda en tiempo real.
Gregg Gusta ha publicado en #Flow

I have a screen flow that (sometimes) uses a picklist (component is displayed conditionally) 

 

The picklist is populated from a template depending on which template keyword is entered in the screenflow. The fields that populate the picklist are up to 6 text fields in the template. How do I restrict them from showing up in the screenflow picklist if they are null?

 

On the templates that do use the picklist, there could be anywhere from 1 to 6 fields that populate the picklist, however if there are less than 6 fields populated, it still is displaying the null values in the picklist, so a user could conceivably select a null value from the list which obviously is not desired. 

 

How do I restrict the picklist to only the fields that are not null in the source template? 

 

I have a screen flow that (sometimes) uses a picklist (component is displayed conditionally) The picklist is populated from a template depending on which template keyword is entered in the screenflow.

 

#Flow  #Flows  #Salesforce Flow @Salesforce Flow Automation #Validation Rule For Picklist On Picklist

2 comentarios
  1. 12 nov 2024, 18:12

    If I understand the use case, I think you can get what you need using the Quick Choice component from Unofficial SF. I set the values (or left the text box blank) in the first screen. Then, I added each answer to a Text Collection variable in the Assignment element. Next, I loop through the values in the Collection variable to see if they are blank. If so, I remove the value from the Collection. Then, using the Quick Choice component, you can display the remaining values from the string in the following screen:

     

    If I understand the use case, I think you can get what you need using the Quick Choice component from Unofficial SF. I set the values (or left the text box blank) in the first screen.

Tonya Harris (AdventHealth, Digital Group Dept.) ha publicado en las noticias en tiempo real de Steve Molis

Hi Steve :) 

I'm having issues with a Validation Rule based on Contact Type. I want if the Contact Type is "Physician" OR "Non-Physician Practitioner" is chosen, then the picklist field called "Credential" must have MD, DO, ARNP, PA or DPT selected. Can you help?:) I've tried most ways that I know and cannot get it right for some reason. Thank you, in advance for your help!!

4 comentarios
  1. 8 ago 2019, 14:41

    You missed the second 1 result on "Non-Physician Practitioner"

    AND(

    CASE(Contact_Type__c, "Physician",1,

    "Non-Physician Practitioner", 1,

    0) = 1,

    CASE(Credential__c,

    "MD",1,

    "DO",1,

    "ARNP",1,

    "PA",1,

    "DPT",1,

    0)= 0

    )