function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ganesh RajputGanesh Rajput 

How to make field read only in flow?

I have two pick lists which are editable for user. when the flow will launch on click, these two Picklists should display with default picklist value but the user should not be able to edit these two picklists.

I am done with this requirement of default values but how can I make these Picklists read-only?
 Is it Possible?


Thank you 
ShirishaShirisha (Salesforce Developers) 
Hi Ganesh,

Greetings!

You can change the Field level Security to Read Only  on the field for the User profile to which you need to restrict.To enable Read Only on the Field Level,you can follow the steps:

>>Go to the Field and Click on the Set Field-Level Security button which is besides the Edit.
>>Click on Read Only Checkbox besides the User's Profile.

Which makes the field Read Only for the users who are all having the same profile.

Reference:https://help.salesforce.com/articleView?id=admin_fls.htm&type=5

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
Ganesh RajputGanesh Rajput
Thanks for your reply @Shirisha.


but, picklist should be editable on record page. On flow screen it should not be editable. So I can not change field level security.
ShirishaShirisha (Salesforce Developers) 
Hey Ganesh,

I don't think it is possible as the field accessible can be set on profile level.However,we can achieve this as below:

>>Do not get the values for the Read Only picklist field by the user on the screen.
>>In the create Record Component assign the default value for the picklist fields.So that,it will create the record with the details which we have provided in the Record create component itself without getting the value from the User.

Hope this information is clear.

Thank you!
Tina Burns 1Tina Burns 1
This is a best platform for opening multiple urls with one url opener click (http://www.urls-opener.com). Just paste your urls in this url opener and just click on Click button in few seconds your all urls will be opened.
GeekyAkshayGeekyAkshay
Late answer but still valid for future visitors: Only possible way out is to create a separate lightning flow with field outputs on-screen elements (without input elements). I cannot even find this anywhere and end up doing it this way. Another way includes creating a custom lightning components with mode type as input and use them on flow screens. 
Alton OrtegaAlton Ortega
In this blog post, we will take a look at how to make fields read-only inflow. This is helpful if you want to restrict which fields can be edited or updated by the user. We will also cover some of the limitations and caveats to keep in mind when using this https://www.bestessays.com.au/thesis-writing.php technique. To learn more about making fields read-only, please continue reading below!
Rita LeonardRita Leonard
At the end of the day, there is no better feeling than a job well done. That's why it is very important to make sure you have a professional hood cleaning service that offers quality services in a timely manner. One such business that provides this service is Hood Cleaning Services Brooklyn (https://www.brooklynhoodcleaningpros.com/) . They are a team of professionals that can handle power washing, pressure washing, and steam cleaning services for your businesses.
Hannah Duncan 5Hannah Duncan 5
Commercial Tree Care is a local family-owned tree service company that has been servicing the Wairarapa, Wellington and fortwaynetreepros.com (https://www.fortwaynetreepros.com/) for over 15 years. We provide professional, friendly and affordable services for all aspects of tree care including pruning, hedge trimming, removals and stump grinding.
Shruti Kulkarni 71Shruti Kulkarni 71
Hi Ganesh. Late answer, but posting as it may help someone.
I have recently come accross similar requirement, where I need the picklist to be non editable on flow screen. Below are the steps I followed.
1. On the flow screen, add the picklist element. 
2. Enter a Label and API Name for the same.
3. Add the picklist value directy as a choice by creating a choice resource type. If the picklist default value is to be fetched from a record dynamically, create a Formula resource and use the same in the Choice resource type. There should be only one choice added.
4. Mark the picklist field as required.
5. Now try running the flow.
6. The picklist should be auto populated with the default value set and there should be no other picklist options, except "-none-"
7. Now, even if you try to select "-none-" and proceed with next screen/step, the flow will through error as the picklist field is marked required and you need to select a value. 

This is just a workaround and may or may not work everyone. But, just posting it as it may help someone or give a different perspective logic vise.  
Myrtle PierceMyrtle Pierce
Flow is a field type in Gmail, it allows you to add content that can be viewed by your users. The great thing about flow is that it gives you the freedom to add more complex interactions without making your mail client complex and difficult to https://www.huffingtonpost.ca/gloria-kopp/essay-writing-payments_b_14793970.html use. However, there are cases when you need to hide the content in flow and only make it accessible from the email's source or from one or a few designated email addresses.