1

I have a flow in which there are two dropdown fields. By default Salesforce makes these fields mandatory (No complaints) but it is defaulting the first choice value. I want that not to happen. I want the flow to provide a default option like "--Select One--". In reality, I can create a separate option called "--Select One--" but then to enforce the validation I will need to add couple more screens and assignments to validate the inputs. It will not be scalable if in the future I add more and more dropdown fields.

enter image description here

2

I know from working with VF and other sources that if there is no "none" option that usually means that the field is marked as required in the field definition. This is evidenced by the fact that they are marked as mandatory in your flow.

You can remove the required flag on the field and update all the page layouts to show that field as required. This will make sure end users have to enter a value but allows you more flexibility in your automations.

Record Types

I believe it's also possible to add a "none" option to the picklist in the record type definition if you are using record types for your object. From my experience this is only enforced if the record already has a record type (if you're editing an existing record or if you create a new record and explicitly set the record type before showing the fields to your user). This is something I've done in Visualforce, I'm not sure how well it'd work in a flow but it could be worth a try.

  • Thank you for the response. In the flow I am not using the picklist field on the Object. I am creating a picklist inside the flow itself. – Json Bourne Shell Aug 22 '18 at 16:00
  • In that case I think you only have the 2 options, create the entry and deal with validating it or do not create the entry. I'd personally just not create the entry and set the default to what ever you think is the most likely response. – gNerb Aug 22 '18 at 16:02
  • Thank you. Option#2 is not an option and Option#1 I was trying to avoid. Looks like it is what I need to do for now. – Json Bourne Shell Aug 22 '18 at 16:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.